Re: [Qemu-devel] [RFC PATCH] audio/sdlaudio: Allow audio playback with SDL2

2017-02-16 Thread Gerd Hoffmann
On Mi, 2017-02-01 at 16:30 +0100, Thomas Huth wrote: > On 01.02.2017 14:25, Gerd Hoffmann wrote: > > On Di, 2017-01-31 at 09:46 +0100, Thomas Huth wrote: > >> When compiling with SDL2, the semaphore trick used in sdlaudio.c > >> does not work - QEMU locks up completely in this case. To avoid > >>

Re: [Qemu-devel] [RFC PATCH] audio/sdlaudio: Allow audio playback with SDL2

2017-02-01 Thread Thomas Huth
On 01.02.2017 14:25, Gerd Hoffmann wrote: > On Di, 2017-01-31 at 09:46 +0100, Thomas Huth wrote: >> When compiling with SDL2, the semaphore trick used in sdlaudio.c >> does not work - QEMU locks up completely in this case. To avoid >> the hang and get at least some audio playback up and running

Re: [Qemu-devel] [RFC PATCH] audio/sdlaudio: Allow audio playback with SDL2

2017-02-01 Thread Gerd Hoffmann
On Di, 2017-01-31 at 09:46 +0100, Thomas Huth wrote: > When compiling with SDL2, the semaphore trick used in sdlaudio.c > does not work - QEMU locks up completely in this case. To avoid > the hang and get at least some audio playback up and running (it's > a little bit crackling, but better than

[Qemu-devel] [RFC PATCH] audio/sdlaudio: Allow audio playback with SDL2

2017-01-31 Thread Thomas Huth
When compiling with SDL2, the semaphore trick used in sdlaudio.c does not work - QEMU locks up completely in this case. To avoid the hang and get at least some audio playback up and running (it's a little bit crackling, but better than nothing), we can use the SDL locking functions SDL_LockAudio()