0
0

I’ve noticed after a few weeks of working it out, that using FMOD_CHANNEL_FREE to initially play a sound and assign it a voice, then any subsequent calls to play it you would use that voice again but use FMOD_CHANNEL_REUSE, works perfectly.

Psuedo code:

[code:j8hzuurh]
if(!sounds_voice)
play_sound_first_time( sound, FMOD_CHANNEL_FREE, sounds_voice );
else
play_sound_reuse( sound, FMOD_CHANNEL_REUSE, sounds_voice );[/code:j8hzuurh]

Was that the original intention of these flags?

  • You must to post comments
0
0

Free picks a non playing voice, reuse uses the voice you pass into playsound. This is already documented.

If you want to cut off a previously playing sound with a new one, for example a machine gun, then re-use is good for this.

  • You must to post comments
0
0

Just making a double-check, thanks.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.