0
0

Hello, I am trying to set a DSP on my channel and get it to work, but something is wrong as I see no difference in the output when the DSP is added to the channel.

Here is my code, as I try it with a Chorus effect:

[code:4iqttv0m] FMOD_MODE l_eMode =
FMOD_2D |
FMOD_LOOP_NORMAL;

FMOD::Sound* l_pSound = NULL;
CHECK_FMOD(l_eResult = l_pFMODSystem->createSound(
    "W:\\APE2006\\Assets\\Media\\Audio\\SpeechFortChester.wav",
    l_eMode,
    NULL,
    &l_pSound));

FMOD::Channel* l_pChannel = NULL;
CHECK_FMOD(l_eResult = l_pFMODSystem->playSound(FMOD_CHANNEL_FREE, l_pSound, true, &l_pChannel));

FMOD::DSP* l_pChorus = NULL;
l_pFMODSystem->createDSPByType(FMOD_DSP_TYPE_CHORUS, &l_pChorus);
l_pChannel->addDSP(l_pChorus);
l_pChorus->setActive(true);
l_pChorus->setBypass(false);

CHECK_FMOD(l_eResult = l_pChannel->setPaused(false));[/code:4iqttv0m]

what am I doing wrong, or what is missing?
thanks for your help,
RungeKutta

  • You must to post comments
0
0

uhm it seems I had to add FMOD_SOFTWARE flag for sound creation, and the chorus effect got correctly applied.

  • You must to post comments
0
0

yes, hardware doesnt support dsp effects. If you checked the error code of addDSP it would probably have given you an error FMOD_ERR_NEEDSSOFTWARE. Check your error codes

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.