@samitouri / QOSamiQemu / commits / 42679cb815

audio: list backends as modules

Windows doesn't support modules, atm, but we can treat it as a regular audio unit regardless. MacOs does support module, so this is fine. Reviewed-by: Mark Cave-Ayland <mark.caveayland@nutanix.com> Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>

Marc-André Lureau committed Jan 17, 2026 at 11:23 UTC 42679cb815b74bfc46c694ec0b4853175c17e4a8
1 file changed +2 -3
audio/meson.build
+2 -3
@@ -8,12 +8,11 @@ system_ss.add(files(
8 # deprecated since v10.2, to be removed
9 system_ss.add(files('audio-hmp-cmds.c', 'wavcapture.c'))
10
11 -system_ss.add(when: coreaudio, if_true: files('coreaudio.m'))
12 -system_ss.add(when: dsound, if_true: files('dsoundaudio.c', 'audio_win_int.c'))
13 -
11 audio_modules = {}
12 foreach m : [
13 ['alsa', alsa, files('alsaaudio.c')],
14 + ['coreaudio', coreaudio, files('coreaudio.m')],
15 + ['dsound', dsound, files('dsoundaudio.c', 'audio_win_int.c')],
16 ['oss', oss, files('ossaudio.c')],
17 ['pa', pulse, files('paaudio.c')],
18 ['sdl', sdl, files('sdlaudio.c')],