0
0

Hi!

I’ve made an easy project which plays an MP3 with equalizer function in Delphi:

FormCreate:
FSOUND_SetOutput(FSOUND_OUTPUT_DSOUND);
FSOUND_SetDriver(0);
FSOUND_SetMixer(FSOUND_MIXER_AUTODETECT);
FSOUND_SetHWND(Handle);
FSOUND_Init(44100, 128, 0);

Button:
stream := FSOUND_Stream_OpenFile(‘D:\test.mp3’, FSOUND_HW2D + FSOUND_ENABLEFX + FSOUND_MPEGACCURATE, 0);
chan := FSOUND_Stream_PlayEx(FSOUND_FREE, stream, nil, True);

fxID1 := FSOUND_FX_Enable(chan, 7);
fxID2 := FSOUND_FX_Enable(chan, 7);
fxID3 := FSOUND_FX_Enable(chan, 7);

FSOUND_FX_SetParamEQ(fxID1, 60, 18, 8);
FSOUND_FX_SetParamEQ(fxID2, 170, 18, 5);
FSOUND_FX_SetParamEQ(fxID3, 310, 18, 0);

FSOUND_SetPaused(chan, False);

That works fine but when I minimize my window or let it go into the background the file stops playing. If I take it into the foreground again it resumes.

What can I do? When I remove FSOUND_ENABLEFX it works.

Thanks, bye!

  • You must to post comments
0
0

Yeah, it works now. I just downloaded a new fmod.dll from your site and now it works fine. But why is the dll in the zip package not the latest one?

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.