0
0

I’m using this code:
[code:2x3n7tgy] Stream := FSOUND_Stream_OpenFile(PChar(dlgOpen.FileName), FSOUND_NORMAL or FSOUND_LOOP_NORMAL or FSOUND_ENABLEFX, 0);
Channel := FSOUND_Stream_Play(FSOUND_FREE, Stream);
FSOUND_SetPaused(Channel,TRUE);
eq1 := FSOUND_FX_ENABLE(Channel, 7);
eq2 := FSOUND_FX_ENABLE(Channel, 7);
FSOUND_SetPaused(Channel,FALSE);

FSOUND_FX_SetParamEQ(eq1,80,36,15);
FSOUND_FX_SetParamEQ(eq2,3000,36,15);

[/code:2x3n7tgy]
and all correct. But if i call function FSOUND_GetCurrentLevels(Channel, @l, @r); it’s always return 0 in l and r variables.

  • You must to post comments
0
0

Try this:

Initialization
[code:1zn4kti9]
FSOUND_SetBufferSize(100);
FSOUND_Init(44100,32,4);
[/code:1zn4kti9]

[code:1zn4kti9]
Stream := FSOUND_Stream_OpenFile(PChar(dlgOpen.FileName), FSOUND_NORMAL or FSOUND_LOOP_NORMAL, 0);
Channel := FSOUND_Stream_Play(FSOUND_FREE, Stream);

FSOUND_SetPaused(FSOUND_SYSTEMCHANNEL, TRUE);
eq1 := FSOUND_FX_ENABLE(FSOUND_SYSTEMCHANNEL, 7);
eq2 := FSOUND_FX_ENABLE(FSOUND_SYSTEMCHANNEL, 7);
FSOUND_SetPaused(FSOUND_SYSTEMCHANNEL, FALSE);

FSOUND_FX_SetParamEQ(eq1,80,36,15);
FSOUND_FX_SetParamEQ(eq2,3000,36,15);

[/code:1zn4kti9]

It depends what you want to do
If you want channel by channel effects this won’t work, but if you
want effects and volume levels this will work.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.