(solved) Volume inconsistency

Started by Radiant, Tue 24/09/2013 13:24:15

Previous topic - Next topic

Radiant

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.

Crimson Wizard

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.

Radiant

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.

SMF spam blocked by CleanTalk