Is there a way to retrieve the channel ID before making a call to FSOUND_Stream_Play() with FSOUND_FREE as the channel ID?
I need to know the channel that it will assign before actually playing the sound so that I can adjust the volume on that channel accordingly.
right now i’m doing :
int channel = FSOUND_Stream_Play(FSOUND_FREE, sound);
but this causes slight glitching when the sound plays, I’d like to be doing this instead:
int channel = getFreeChannel() // returns the channel that FSOUND_Stream_Play with FSOUND_FREE would have assigned
…so I guess what I’m wondering is what I’d need to put in my getFreeChannel() function to make this work.
- emilfalcon asked 14 years ago
- You must login to post comments