Hi all.

I’m very new with FMOD Ex, but I do have some experience with C++ and openFrameworks (which is from where I’m using FMOD).

I am helping with a workshop on openFrameworks and we want to positionate a sound in 3D using a 5.1 sound card and 4 speakers.

Does anyone know where I can find a code example to get us started?

Thank you very much!

  • You must to post comments

Hi krahd,

There should be some examples in the FMOD install directory. e.g.
C:/Program Files/FMOD SoundSystem/FMOD Programmers API win32/examples

You might like to take a look at the example ‘3d’.

The initialization code for that example will setup FMOD to use as many speakers as supported.
[code:23i16ohv] result = system->getDriverCaps(0, &caps, 0, 0, &speakermode);

result = system->setSpeakerMode(speakermode);       /* Set the user selected speaker mode. */

If you want to force FMOD to only use 4 speakers you can change speakermode to FMOD_SPEAKERMODE_QUAD.

Hope this helps.


  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.