Although
SetMusicSystemVolume sets the global volume of all music files, it appears that
SetMusicFileVolume has no effect at all. Regardless if I use
SetMusicFileVolume(i, 0) or
SetMusicFileVolume(i, 100) the music files always play at their max volume in relation to the global volume. Is this command completely nonfunctional at this point?
The guide states: "Sets the volume on a per file basis,
this volume level is combined with the music system volume to create the final volume. By default files are played at volume 100. The volume level should be between 0 and 100."
Which is a bit confusing in itself but the command should allow us to control individual volume of music files in relation to the global volume. This is especially useful to fade in one track while fading out another. Has anyone had success using this command?
To test, you can open up SantasBadElf in AppGameKit and edit main_menu.agc as such:
LoadMusic ( 1, "music.mp3" )
PlayMusic ( 1 )
SetMusicSystemVolume(100)
SetMusicFileVolume(1, 0)
Although I set the file volume to 0, it still plays at full 100% as a result of the system volume. (Testing in Windows currently).
P.S., I just saw another unanswered thread in the Windows forum about this command not working. That is the only other reference I can find.