I'm trying to restore the volume level the game was set at when the save file occurred (I wish it happened automatically but it doesn't seem to). I'm using this code and even though the btnVolume slider returns the correct value it isn't being set to that volume:
function on_event(EventType event, int data) {
// [...]
else if (event == eEventRestoreGame) {
System.Volume = btnVolume.Value;
SetGameSpeed(btnSpeed.Value);
}
}
It should work but doesn't... any way to work around?
I've worked around this by just looping through all the AudioChannels in the game and setting their volume individually rather than setting the System.Volume, but I'm pretty sure this is a bug that should be fixed...
Techies?
Would this be a bug in the new Audio classes?