0
0

Hi,
I am new to FMOD – I want to input an array representing the hrir and a wav file together, so that they will be convolved inside a dsp but I don’t know how best to do this.

Any help would be much appreciated,

  • You must to post comments
0
0

The easiest way to implement convolution, is to make your own DSP effect that applies an array of samples (impulse response) to the signal buffer (wave).

Take a look at the ‘Custom DSP’ example that ships with the API, this will give you most of the framework, and all you really need to do it add the convolution algorithm.

cheers,
Templar

  • You must to post comments
0
0

Thanks for your reply Templar,
I made two dsp effects (mydsp1, mydsp2) like you said.
When I only add one DSP to one channel like this…

result = channel[1]->addDSP(mydsp2, 0); ERRCHECK(result);
… it all works fine.

But if I add the two DSPs, (one for each channel)…

result = channel[1]->addDSP(mydsp2, 0); ERRCHECK(result);
result = channel[0]->addDSP(mydsp1, 0); ERRCHECK(result);

…I start hearing some noise in both channels. I find this strange since the two of them work fine independently.

Thanks,

Lalla

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.