mirror of
https://github.com/xemu-project/xemu.git
synced 2024-12-12 14:05:56 +00:00
7e1fbe7963
Ever since winwaveaudio was removed in 2015, CONFIG_AUDIO_WIN_INT is only set if dsound is in use, so use CONFIG_AUDIO_DSOUND directly. Cc: Gerd Hoffman <kraxel@redhat.com> Cc: Volker Rümelin <vr_qemu@t-online.de> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20211007130630.632028-3-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
31 lines
926 B
Meson
31 lines
926 B
Meson
softmmu_ss.add([spice_headers, files('audio.c')])
|
|
softmmu_ss.add(files(
|
|
'audio_legacy.c',
|
|
'mixeng.c',
|
|
'noaudio.c',
|
|
'wavaudio.c',
|
|
'wavcapture.c',
|
|
))
|
|
|
|
softmmu_ss.add(when: [coreaudio, 'CONFIG_AUDIO_COREAUDIO'], if_true: files('coreaudio.c'))
|
|
softmmu_ss.add(when: [dsound, 'CONFIG_AUDIO_DSOUND'],
|
|
if_true: files('dsoundaudio.c', 'audio_win_int.c'))
|
|
|
|
audio_modules = {}
|
|
foreach m : [
|
|
['CONFIG_AUDIO_ALSA', 'alsa', alsa, 'alsaaudio.c'],
|
|
['CONFIG_AUDIO_OSS', 'oss', oss, 'ossaudio.c'],
|
|
['CONFIG_AUDIO_PA', 'pa', pulse, 'paaudio.c'],
|
|
['CONFIG_AUDIO_SDL', 'sdl', sdl, 'sdlaudio.c'],
|
|
['CONFIG_AUDIO_JACK', 'jack', jack, 'jackaudio.c'],
|
|
['CONFIG_SPICE', 'spice', spice, 'spiceaudio.c']
|
|
]
|
|
if config_host.has_key(m[0])
|
|
module_ss = ss.source_set()
|
|
module_ss.add(when: m[2], if_true: files(m[3]))
|
|
audio_modules += {m[1] : module_ss}
|
|
endif
|
|
endforeach
|
|
|
|
modules += {'audio': audio_modules}
|