0
0

Hello, I hope that somebody can help me with this problem.

I am using FMOD with Delphi, and sometimes when I switches to another application (MSN messanger was one of them), my program get’s “quiet”.

When I switch back to my program, I can hear the sound again.

I am initiating FMOD like this:
[code:32f47m7s] FSOUND_SetOutput(FSOUND_OUTPUT_DSOUND);
FSOUND_SetDriver(0);
FSOUND_SetMixer(FSOUND_MIXER_AUTODETECT);
FSOUND_SetHWND(AHandle);
if not FSOUND_Init(22050, 128, 0) then ...[/code:32f47m7s]

Am I doing something wrong?

Thanks in advance,
Mikael Stalvik

  • You must to post comments
0
0

What are you seeing is normal behaviour. Your application loses focus, so the sound stops. Try adding the FSOUND_GLOBALFOCUS flag to FSOUND_Init. This allows the sound to continue even when your application loses focus.

  • You must to post comments
0
0

Thanks, that seemd to work properly.

Regards,
Mikael Stalvik

  • You must to post comments
0
0

Or, since FMOD is quite intelligent, you can let it choose the driver and mixaer, by not declaring nothing at the beginning. 😛

c u laser

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.