[SDL] SDL_CloseAudio cause deadloop??

rockt at uwink.com.cn rockt at uwink.com.cn
Mon Nov 5 03:00:01 PST 2001


Hi guys,

We use SDL to develop some video games. While testing, we found that 
the game will be in a deadloop like status when we call SDL_CloseAudio().

It means:

(1) The game is not dead. It is still Running.
(2) The game occupies almost 99.5% CPU time :(
(3) When we switch to another terminal and kill the game. All things will
    be okay again.

We set a log before and after that, just like :

main()
{
    ....

    syslog(LOG_INFO,"Before close()");
    SDL_CloseAudio();
    syslog(LOG_INFO, "After close()");
    SDL_CloseGraphics();
    syslog(LOG_INFO, "Exit!!");
    return 0;
}

We only got a "Before close()". When kill the game, we got "After close()"
and "Exit!!".

Are there anyone can help?

Thanks,

Rock





More information about the SDL mailing list