My music volume slider doesn't work. I'm using default AGS GUI panel (sierra type). Slider code:
function sldMusic_OnChange(GUIControl *control)
{
SetMusicMasterVolume(sldMusic.Value);
}
No matter what position slider is in, the volume doesn't change.
Slider for sound however works fine. Here's its code:
function sldSound_OnChange(GUIControl *control)
{
SetSoundVolume(sldSound.Value);
}
I've consulted manual and everything should work. What am I doing wrong? Both sounds and music are added in their respective folders in audio section in the editor. I tried changing music prority but it doesn't help. I just don't understand how the music is handled. I've searched the forums and found some posts regarding master volume handling but I still don't get it. Sorry for being dumb! :)
Could anyone help me with this or maybe point in the right direction? (not off a Cliff :) )
Since AGS 3.2, it's
Game.SetAudioTypeVolume(eAudioTypeMusic, sldMusic.Value, eVolExistingAndFuture);
It works! Thanks so much, Khris!