0
0

Hello again.

I’m trying to position some basic dsp oscillators. I made them with:

[code:3rrdclsa]FMOD::DSP * dsp = 0;
system->createDSPByType(FMOD_DSP_TYPE_OSCILLATOR, &dsp);
dsp->setParameter(FMOD_DSP_OSCILLATOR_RATE, 440.0f);
dsp->setParameter(FMOD_DSP_OSCILLATOR_TYPE, 0);
system->playDSP(FMOD_CHANNEL_FREE, dsp, true, channel);[/code:3rrdclsa]

Now i’m wondering how to position this dsp sound in 3d. According to the API reference "A dsp defined as FMOD_3D will by default play at the position of the listener." But other than playSound or playStream, playDSP does not allow me to set the FMOD_MODE to 3D. So where do i do this??

Thanks,

yvan

  • You must to post comments
0
0

Hi yvan,

You can use Channel::setMode with FMOD_3D.

  • You must to post comments
0
0

I seem to remember when testing things related to this post:

http://52.88.2.202/forum/viewtopic.php?t=13385

..that playDSP() channels also didn’t work properly in terms of 3D panning (and 2D panning) with certain versions of FMOD. It’s fine with 4.33.01 and 4.32.01 but between that and 4.28(ish) there are problems.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.