Hello,
the only way I can think of at the moment is the following:
Check in a loop if the slider value has been altered and if so, play the sound.
Something like this:
void sound_settings_menu_loop()
{
/* store current slider value to become aware of changes */
var old_slider_value = slider_value;
while(in_sound_settings_menu)
{
if ((mouse_left == FALSE) && (old_slider_value != slider_value))
/* slider has been dragged */
{
snd_play(...);
old_slider_value = slider_value;
}
wait(1);
}
}
Probably not the best solution, but it should work.