0
0

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);
FSOUND_SetVolume(channel,volume);

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
FSOUND_SetVolume(channel,volume);
FSOUND_Stream_Play(channel, sound);

…so I guess what I’m wondering is what I’d need to put in my getFreeChannel() function to make this work.

  • You must to post comments
0
0

try using playex which allows you to start playing a stream paused then you can set the volume and un pause

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.