Nasice2003
04-26-2004, 06:37 PM
Interesting... I put a slider plugin(ranging from 0-255)
result = Slider.GetSliderPos("Plugin2");
Audio.SetVolume(CHANNEL_BACKGROUND, result);
that controls the level of background music, and it works ok, except for one anoying detail... When I put the slider to the lowest volume state, it stays like this for a few minutes, and then it starts playing again at some medium volume, although the slider's still down. When I press the slider, it lowers the volume again.
Probably an Audio.Pause on result=0 would do the trick, but I'm curious why this happens. Thanx guys. :rolleyes
result = Slider.GetSliderPos("Plugin2");
Audio.SetVolume(CHANNEL_BACKGROUND, result);
that controls the level of background music, and it works ok, except for one anoying detail... When I put the slider to the lowest volume state, it stays like this for a few minutes, and then it starts playing again at some medium volume, although the slider's still down. When I press the slider, it lowers the volume again.
Probably an Audio.Pause on result=0 would do the trick, but I'm curious why this happens. Thanx guys. :rolleyes