Hi. StopSound/setvolume etc wants the channel number, not the handler. But i have no idea what exact channel my samples are playing at from time to time, and the tutorial says i can just pass the handle (which seems resonable). I can play it but the stopSound doenst compile since it wants the channel number (int). How to solve this?
FSOUND_Init (44100, 32, 0);
When we want to stop the sample we just use:
And once again can the parameter be a channel number.
It doesnt work…
Thanks for your help
- Anonymous asked 12 years ago
FSOUND_PlaySound returns the channel that it played the sound on. Also, it’s recommended to use FSOUND_FREE. Check the docs on this.
[code:22n6dzrf]int channel = FSOUND_PlaySound(FSOUND_FREE, s1);
(wait for a keypress or something so we don’t stop the sound immediately)
Please login first to submit.