bug-gnash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnash] MinGW builds of GNASH ~ SDL initAudio Still Hangs (Win7-


From: Sandro Santilli
Subject: Re: [Bug-gnash] MinGW builds of GNASH ~ SDL initAudio Still Hangs (Win7-64)
Date: Fri, 31 Aug 2012 17:48:05 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

On Tue, Aug 28, 2012 at 12:47:47AM +1000, CADDIT wrote:

> #ifdef WIN32
> 
>     // SDL can hang on windows if SDL_CloseAudio() is called immediately
> 
>     // after SDL_OpenAudio(). It's evidently to do with threading, but
> 
>     // internal to SDL. This is a tacky solution, but it's only windows.
> 
>     gnashSleep(1);
> 
> #endif
> 
>  
> 
> Obviously this hack only addresses the problem so far. In my brief research
> the real solution has something to do with wrapping openAudio and closeAudio
> in a thread mutex.

IIRC SDL has its own mutex locking calls, you should see some used within
the same file containing the OpenAudio and CloseAudio calls.

See if using those works for you.

--strk;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]