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.
- nevans06 asked 9 years ago
Have a look at Sound::getFormat(). If all you care about is channels, you’ll say something like:
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.
- Adiss answered 9 years ago
Please login first to submit.