0
0

Hi there,

I still want my program to run when FMOD filas to init to to /dev/dsp being in use, so I have this code:

if (FSOUND_Init(44100, SOUND_TOTAL_VOICES, 0) == FALSE)
{
FSOUND_Close();
FSOUND_SetOutput(FSOUND_OUTPUT_NOSOUND);
FSOUND_Init(44100, SOUND_TOTAL_VOICES, 0);
}

However, after FSOUND_Init() failed once, the timer system of Allegro ( http://alleg.sf.net ) fails. None of my timer callback routines are called anymore. I’m not sure, but I think Allegros timer system relies on SIGALRM.

On the other hand, when I do this directly:

FSOUND_SetOutput(FSOUND_OUTPUT_NOSOUND);
FSOUND_Init(44100, SOUND_TOTAL_VOICES, 0);

there is no problem at all and the game works perfectly, just without sound.

Thanks for any help.
Jörg

  • You must to post comments
0
0

Well i’m sure we don’t catch any signals (we shouldn’t).
But i’ll check and see what can be the problem.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.