SetMusicMaster and digital music

Started by Rui 'Trovatore' Pires, Wed 25/05/2005 07:30:23

Previous topic - Next topic

Rui 'Trovatore' Pires

I know I've been being a pest, but these are things I just gotta ask. :=

SetMusicMaster appears not to affect OGG - though I haven't tried with WAV or MP3, I assume it doesn't affect those. Makes sense, that's why there is SetDigitalSoundMaster. But the latter also affects sounds. How can I change my OGG background music volume without affecting the sounds? I know this sounds like a "beginner's question", but I just couldn't find a way - so I thought I'd better ask it here in this board.

On a side note, just making sure - there ain't no way I can change the volume at which a video is played in AGS, either directly or indirectly (ie, say, accessing the user's volume controls myself), right?
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

strazer

It's on the tracker.
In my experience the digital music volume is affected, but can't be turned all the way down. I don't know if it's a bug or if it is the intended behaviour.

Maybe it has to do with the overall music volume of the room ("Quietest" to "Loudest") you can set in the editor and with SetMusicVolume? Setting it to "Quietest" seems to work, but is not a very nice solution.

Gilbert

Hmmmm I don't know, maybe try setting the volume of channel 0 using SetChannelVolume() ?

About video volume I think currently there's no easy way to do this with the engine (it's probably affected by Digital Master Volume I think, but I'm not sure). Of course, there's always an excuse option, which is to make a plugin for it.

strazer

Thanks, using SetChannelVolume on channel 0 seems to work.

Pumaman

SetMusicMasterVolume should affect all music types, including OGG. Is this not working for you?

Rui 'Trovatore' Pires

No, unfortunately it is not. I haven't tried the SetChannelVolume thingy, but if it works it's a suitable workaround - thanks for the tip, guys! But if it should affect all music types, then you should look into it. The ogg file definitely keeps on playing.
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Pumaman

So are you saying there's no difference in volume between SetMusicMasterVolume(0) and SetMusicMasterVolume(100) ?

Rui 'Trovatore' Pires

#7
Hang on while I double-check. If I made any mistake I'm gonna feel like a great fool, lemme tell you. Just a minute.

EDIT - Yep, I am a great fool. It does work. Thing is, since the room music is set to loudest, it does not get to actual silence, and the difference it made on the slider was barely noticeable. And I mean *barely*. I honestly could not hear the difference. So sorry 'bout that...

EDIT 2 - Ok, so actually true silence seems to be a rare thing even with a "Normal" setting on the room, but now the difference is bigger and more noticeable.
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Pumaman

SetDigitalMasterVolume controls the overall digital sound volume.

SetMusicMasterVolume then controls the music volume within this. So a MusicMasterVolume of 100 means it is 100% within the DigitalMAsterVolume.

Changing the DigitalMasterVolume will therefore have a more noticable effect, however by setting the MusicMasterVolume to 0 and the SetMusicVolume to quietest, you shoudl be able to effectively mute the sound.

The way volume works in AGS is a bit annoying really, it's due to the order in which various options were added and has become a bit of a mess.

Rui 'Trovatore' Pires

QuoteSetMusicMasterVolume then controls the music volume within this. So a MusicMasterVolume of 100 means it is 100% within the DigitalMAsterVolume.

Hmmm, thanks for the info - though it's not practical in my specific case (I can't use SetDigitalMasterVolume because that affects general sound output and I need a seperate Sound volume), it's nice to know and allows for a greater understanding on how it works.
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

SMF spam blocked by CleanTalk