0
0

I’m trying to create dsp-generated sounds with dsp effects in 3d.
Creating any normal sound and adding for example flanger to it works fine,

[code:3domwo6y]
system->createSound("sound.wav", FMOD_SOFTWARE | FMOD_LOOP_NORMAL | FMOD_3D , 0, &sound);
system->playSound(FMOD_CHANNEL_FREE, sound, false, &channel);
[/code:3domwo6y]

but when i add flanger to a dsp generated tone the tone disappears!?!…

[code:3domwo6y]
system->createDSPByType(FMOD_DSP_TYPE_OSCILLATOR, &sine);
system->playDSP(FMOD_CHANNEL_FREE, sine, false, &channel);
system->createDSPByType(FMOD_DSP_TYPE_FLANGE, &flanger);
channel->addDSP(flanger);
[/code:3domwo6y]

I can get the flanged tone to work by first adding the sine to a normal sound and then adding the flanger…

[code:3domwo6y]
system->createSound("sound.wav", FMOD_SOFTWARE | FMOD_LOOP_NORMAL | FMOD_3D , 0, &sound);
system->createDSPByType(FMOD_DSP_TYPE_OSCILLATOR, &sine);
system->createDSPByType(FMOD_DSP_TYPE_FLANGE, &flanger);
system->playSound(FMOD_CHANNEL_FREE, sound, false, &channel);
channel->addDSP(sine);
channel->addDSP(flanger);
[/code:3domwo6y]

Now the nomal sound disapears, and the flanged tone is heard, but then ofcourse this is not the way to do it…

How can i simply add the flanger effect to the dsp generated sine?

/Anders

  • You must to post comments
0
0

Excelent!
Thank you very much.
Now it works perfectly to add effects to dsp generated tones.

Though, another quesion arises…
Is it not possible to play multiple oscillators in one channel?
If not, why?

/Anders

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.