0
0

Hi

I’m trying to program an equalizer for my Audio Player program.
My code looks like this:

[code:no5kc8ed]Local FxId:Int, Stream:Byte Ptr

FSOUND_SetBufferSize(100)
FSOUND_SetOutput(FSOUND_OUTPUT_DSOUND)

FSound_Init(48000,1,0)

FSound_SetPause(0,True)
FxId = FSound_FX_Enable(0,FSOUND_FX_PARAMEQ)
FSound_FX_SetParamEQ(FxId,60,12,15)

Stream = FSound_Stream_Open("my/file.mp3",0,0,0)
FSound_Stream_PlayEx(0,stream,Null,False)[/code:no5kc8ed]

But the output is unmodified and "FX ID" is "-1" (Error "An invalid parameter was passed to this function")

I tried so much, Software Channel and so on but found nothing that works… please help me :/

  • You must to post comments
0
0

You can’t pause a channel that’s not even playing yet. Use FSOUND_FREE not 0 when you play a sound, then pass the result from playsound to the fx functions and setpaused functions.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.