0
0

Hi,
I might get something wrong here but when I read the description about the "channelid" parameter in the "System::playSound" function:
[quote:2bbptsy9]Use the value FMOD_CHANNEL_FREE to get FMOD to pick a free channel. Otherwise specify a channel number from 0 to the ‘maxchannels’ value specified in System::init minus 1.[/quote:2bbptsy9]
I’m wondering how I am supposed to do so because the type of the parameter appears to be enum FMOD_CHANNELINDEX and i cannot pass anything else except the two predefined enum values FMOD_CHANNEL_FREE and FMOD_CHANNEL_REUSE.

  • You must to post comments
0
0

You have to cast the integer value to FMOD_CHANNELINDEX. Generally people just use FMOD_CHANNEL_FREE and FMOD_CHANNEL_REUSE.

-Pete

  • You must to post comments
0
0

Oh I didn’t even know that casting arbitrary values into an enum type was possible.

Thanks!

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.