Adventure Game Studio

AGS Development => Engine Development => Topic started by: Radiant on Tue 24/09/2013 13:24:15

Title: (solved) Volume inconsistency
Post by: Radiant on Tue 24/09/2013 13:24:15
A minor issue, but currently, music and sound and ambient volume is set with Game.SetAudioTypeVolume on a scale of 0-100, whereas speech volume is set with SetSpeechVolume on a scale of 0-255. I would expect an eAudioTypeSpeech parameter instead.

It is not listed in the documentation what the default of SetAudioTypeVolume is; is it 100? This is relevant for initializing the corresponding GUI sliders properly.
Title: Re: Volume inconsistency
Post by: Crimson Wizard on Tue 24/09/2013 14:00:51
Quote from: Radiant on Tue 24/09/2013 13:24:15
It is not listed in the documentation what the default of SetAudioTypeVolume is; is it 100? This is relevant for initializing the corresponding GUI sliders properly.
Afaik the default is the volume that you set yourself in the audio category properties. Select "Audio->Music" folder, and you'll see "DefaultVolume" property in the props table.
Also every single file has its own DefaultVolume. By default it inherits one from the folder (-1).
I don't know how to get that one in game though.
Title: Re: Volume inconsistency
Post by: Radiant on Tue 24/09/2013 14:20:58
Thank you, that answers my question. I don't see the need to set the default volume by file, at least for the game I'm working on now.