0
0

Hi All!

Can anybody tell me please how to detect if a loaded sound is mono/stereo using FMOD Ex?

I am usign FMOD_SOUND_FORMAT to detect the type, i.e. 16 bits pcm etc…

I just need to find out if the sample loaded is in stereo or mono format.

Thanks! :)

  • You must to post comments
0
0

Have a look at Sound::getFormat(). If all you care about is channels, you’ll say something like:
[code:wb8gurzb]int channels;
sound->getFormat(NULL, NULL, &channels, NULL);[/code:wb8gurzb]
The ‘channels’ variable gets filled with the number of channels in the sound. 1 will be mono, 2 will be stereo, etc.

  • G
  • You must to post comments
0
0

Many Thanks,

That’s just what I needed. 😀

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.