diff options
| author | Thomas Huth | 2017-01-31 09:46:38 +0100 |
|---|---|---|
| committer | Gerd Hoffmann | 2017-03-01 15:12:03 +0100 |
| commit | bcf19777df78193f7cdb108a55db44fd4f20d5b5 (patch) | |
| tree | e71dcb56e7f543ba35c1240929c35480a898d551 /include/exec | |
| parent | audio: make audio poll timer deterministic (diff) | |
| download | qemu-bcf19777df78193f7cdb108a55db44fd4f20d5b5.tar.gz qemu-bcf19777df78193f7cdb108a55db44fd4f20d5b5.tar.xz qemu-bcf19777df78193f7cdb108a55db44fd4f20d5b5.zip | |
audio/sdlaudio: Allow audio playback with SDL2
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() and SDL_UnlockAudio() to sync
with the sound playback thread instead.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-id: 1485852398-2327-1-git-send-email-thuth@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions
