0
0

Why in the custom_dsp example does the volume cut in half with the custom dsp is activated? I’m having the same issue in my app.

  • You must to post comments
0
0

Probably it is related to the post about using a pitch shifting DSP:

[url:3eg1ybqm]http://www.fmod.org/forum/viewtopic.php?f=7&t=14287[/url:3eg1ybqm]

  • George
  • You must to post comments
0
0

Hi Justin,

[quote:apezuwjd]Is ‘buffersize’ (in the documentation) the same as ‘blocksize’ (from your post)? Are these both the same as ‘blocklength’ (from the System::setDSPBufferSize function prototype)?[/quote:apezuwjd]
You’re right, they’re all the same.

[quote:apezuwjd]The documentation seems to advise against changing the buffersize. [/quote:apezuwjd]
It’s not advisable to change those values unless you have good reason to.

[quote:apezuwjd]You also suggest increasing the output frequency — which function would do that? [/quote:apezuwjd]
System::setSoftwareFormat

Getting back to your original query, why do you want your callback to be called more often?

  • You must to post comments
0
0

Peter, would you elaborate on this?

To reduce the blocksize of the DSP, would I use System::setDSPBufferSize? The documentation seems to advise against changing the buffersize.

Is ‘buffersize’ (in the documentation) the same as ‘blocksize’ (from your post)? Are these both the same as ‘blocklength’ (from the System::setDSPBufferSize function prototype)? Forgive the silly questions, I’m a n00b and still learning the terminology.

You also suggest increasing the output frequency — which function would do that?

Thanks for your time and attention.
-Justin

  • You must to post comments
0
0

Hi OrganicBytes,

Note the comment inside the DSP code:
[quote:2vy95ats]
/*
This DSP filter just halves the volume!
Input is modified, and sent to output.
*/[/quote:2vy95ats]

That is what the DSP does, it is a simple volume change DSP and the volume is a half.

-Pete

  • You must to post comments
0
0

OK, I’m having another issue. How do you increase the frequency that the myDSPCallback function is called? I’m trying to port some code from FMOD 3 and it’s acting differently in FMOD 4. Thanks!

  • You must to post comments
0
0

All dsps are called at the rate of the mixer. Generally on iPhone the mixer runs at 22kHz. Each time FMOD calls the DSP callbacks it will request a number of samples equal to the DSP block size. You can call your function more times by reducing the blocksize, you can request more samples per second by increasing the output frequency. Both will increase the CPU usage of your application.

  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.