0
0

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.

Thanks
Jefferson

hFSound = FMOD_CreateInstance(FMOD_LIB_PATH)
hFSound->FSOUND_SetOutput(FSOUND_OUTPUT_DSOUND)
hFSound->FSOUND_SetDriver(0)
hFSound->FSOUND_SetBufferSize(100)
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);
hFSound->FSOUND_DSP_SetActive(DSP, TRUE);

Channel = hFSound->FSOUND_Stream_PlayEx( FSOUND_FREE, bufDest, DSP, TRUE);

hFSound->FSOUND_SetPaused(FSOUND_ALL, TRUE);
hEcho = hFSound->FSOUND_FX_Enable(Channel, FSOUND_FX_ECHO);
hFSound->FSOUND_FX_SetEcho(hEcho, 80.0f, 70.0f, 1000.0f, 1000.0f, TRUE);
hFSound->FSOUND_SetPaused(FSOUND_ALL, FALSE);

  • You must to post comments
0
0

well what do you know that worked :)
Thank you.
I got a little confused using one of the sample programs.

  • You must to post comments
0
0

Excuse me for this question, but how do you define software based sounds/hardware based sounds?

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.