I am grabbing data from the game with custom DSP and I need to undestand at what frequency samples are coming in into read callback.
system->getSoftwareFormat returns me 48000 while dsp->getDefaults return 44100, what is the most correct way to figure it out?
And how I can force my DSP to work on 44100?
- vasilykh asked 7 years ago
[quote="brett":3a8coyod]getSoftwareFormat is the correct one.
If you want it to run at any sample rate, play it as a channel rather than using addDSP.
Use System::playDSP then Channel::setFrequency to get your desired rate.[/quote:3a8coyod]
Thanks for your reply, but I still having problems with this, here what I had:
This code was working but on system frequency (48000) and I wanted it to be on 44100, so I did this:
FMOD::Channel *channel = NULL;
checkResult(system->playDSP(FMOD_CHANNEL_REUSE, dsp, false, &channel));
after I do this all the samples I am getting in callback of my DSP have 0 value.
And I want to get all the sounds played at 441000 frequency in real time.
- vasilykh answered 7 years ago
Please login first to submit.