I am trying to apply a simple echo to a stream and I am lost as to whats going wrong. Below is a general gist of what my code does. I left out some of it.
I dont think i am implementing my DSP right. I can play the song when i put a NULL DSP in PlayEx and have no effects. However, I get silence when I put in my DSP in PlayEX (even commenting out the effects and unpaused) and cant enable my echo effect.
Could someone please look at my code or even post code that simply applies an effect to a stream.
hFSound = FMOD_CreateInstance(FMOD_LIB_PATH)
hFSound->FSOUND_Init(44100, 32, FSOUND_INIT_ENABLEOUTPUTFX)
bufDest = hFSound->FSOUND_Stream_Open(Data, FSOUND_NORMAL | FSOUND_STEREO| FSOUND_ENABLEFX | FSOUND_LOADMEMORY, 0, FileLen);
DSP = hFSound->FSOUND_Stream_CreateDSP(bufDest, NULL, 0, 0);
Channel = hFSound->FSOUND_Stream_PlayEx( FSOUND_FREE, bufDest, DSP, TRUE);
hEcho = hFSound->FSOUND_FX_Enable(Channel, FSOUND_FX_ECHO);
hFSound->FSOUND_FX_SetEcho(hEcho, 80.0f, 70.0f, 1000.0f, 1000.0f, TRUE);
- Jefferson asked 13 years ago
Please login first to submit.