Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Rui 'Trovatore' Pires on Wed 25/05/2005 07:30:23

Title: SetMusicMaster and digital music
Post by: Rui 'Trovatore' Pires on Wed 25/05/2005 07:30:23
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?
Title: Re: SetMusicMaster and digital music
Post by: strazer on Wed 25/05/2005 08:09:22
It's on the tracker (http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=475).
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.
Title: Re: SetMusicMaster and digital music
Post by: Gilbert on Wed 25/05/2005 08:09:59
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.
Title: Re: SetMusicMaster and digital music
Post by: strazer on Wed 25/05/2005 08:20:10
Thanks, using SetChannelVolume on channel 0 seems to work.
Title: Re: SetMusicMaster and digital music
Post by: Pumaman on Wed 25/05/2005 18:16:48
SetMusicMasterVolume should affect all music types, including OGG. Is this not working for you?
Title: Re: SetMusicMaster and digital music
Post by: Rui 'Trovatore' Pires on Wed 25/05/2005 19:50:33
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.
Title: Re: SetMusicMaster and digital music
Post by: Pumaman on Wed 25/05/2005 20:35:33
So are you saying there's no difference in volume between SetMusicMasterVolume(0) and SetMusicMasterVolume(100) ?
Title: Re: SetMusicMaster and digital music
Post by: Rui 'Trovatore' Pires on Wed 25/05/2005 21:12:42
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.
Title: Re: SetMusicMaster and digital music
Post by: Pumaman on Thu 26/05/2005 19:32:53
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.
Title: Re: SetMusicMaster and digital music
Post by: Rui 'Trovatore' Pires on Thu 26/05/2005 22:08:36
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.