qemu-irix/audio
Marc-André Lureau a384c205ac audio: clean up before monitor clean up
Since aa5cb7f5e, the chardevs are being cleaned up when leaving qemu,
before the atexit() handlers. audio_cleanup() may use the monitor to
notify of changes. For compatibility reasons, let's clean up audio
before the monitor so it keeps emitting monitor events.

The audio_atexit() function is made idempotent (so it can be called
multiple times), and renamed to audio_cleanup(). Since coreaudio
backend is using a 'isAtexit' code path, change it to check
audio_is_cleaning_up() instead, so the path is taken during normal
exit.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20160801112343.29082-3-marcandre.lureau@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2016-08-08 14:17:00 +02:00
..
Makefile.objs
alsaaudio.c
audio.c audio: clean up before monitor clean up 2016-08-08 14:17:00 +02:00
audio.h audio: clean up before monitor clean up 2016-08-08 14:17:00 +02:00
audio_int.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
audio_pt_int.c
audio_pt_int.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
audio_template.h
audio_win_int.c
audio_win_int.h
coreaudio.c audio: clean up before monitor clean up 2016-08-08 14:17:00 +02:00
dsound_template.h
dsoundaudio.c
mixeng.c
mixeng.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
mixeng_template.h
noaudio.c qemu-common: stop including qemu/host-utils.h from qemu-common.h 2016-05-19 16:42:28 +02:00
ossaudio.c os-posix: include sys/mman.h 2016-06-16 18:39:03 +02:00
paaudio.c audio: pa: Set volume of recording stream instead of recording device 2016-06-03 11:13:38 +02:00
rate_template.h
sdlaudio.c
spiceaudio.c qemu-common: stop including qemu/host-utils.h from qemu-common.h 2016-05-19 16:42:28 +02:00
trace-events trace: split out trace events for audio/ directory 2016-06-20 17:22:17 +01:00
wavaudio.c qemu-common: stop including qemu/host-utils.h from qemu-common.h 2016-05-19 16:42:28 +02:00
wavcapture.c