2020-10-14 14:11:18 +02:00
|
|
|
softmmu_ss.add([spice_headers, files('audio.c')])
|
2020-08-17 12:47:55 +02:00
|
|
|
softmmu_ss.add(files(
|
|
|
|
'audio_legacy.c',
|
|
|
|
'mixeng.c',
|
|
|
|
'noaudio.c',
|
|
|
|
'wavaudio.c',
|
|
|
|
'wavcapture.c',
|
|
|
|
))
|
|
|
|
|
2021-10-07 15:06:09 +02:00
|
|
|
softmmu_ss.add(when: coreaudio, if_true: files('coreaudio.c'))
|
|
|
|
softmmu_ss.add(when: dsound, if_true: files('dsoundaudio.c', 'audio_win_int.c'))
|
2020-08-17 12:47:55 +02:00
|
|
|
|
|
|
|
audio_modules = {}
|
|
|
|
foreach m : [
|
2021-10-07 15:06:09 +02:00
|
|
|
['alsa', alsa, files('alsaaudio.c')],
|
|
|
|
['oss', oss, files('ossaudio.c')],
|
|
|
|
['pa', pulse, files('paaudio.c')],
|
|
|
|
['sdl', sdl, files('sdlaudio.c')],
|
|
|
|
['jack', jack, files('jackaudio.c')],
|
|
|
|
['spice', spice, files('spiceaudio.c')]
|
2020-08-17 12:47:55 +02:00
|
|
|
]
|
2021-10-07 15:06:09 +02:00
|
|
|
if m[1].found()
|
2020-08-17 12:47:55 +02:00
|
|
|
module_ss = ss.source_set()
|
2021-10-07 15:06:09 +02:00
|
|
|
module_ss.add(m[1], m[2])
|
|
|
|
audio_modules += {m[0] : module_ss}
|
2020-08-17 12:47:55 +02:00
|
|
|
endif
|
|
|
|
endforeach
|
|
|
|
|
2021-03-09 14:15:28 +01:00
|
|
|
if dbus_display
|
|
|
|
module_ss = ss.source_set()
|
|
|
|
module_ss.add(when: gio, if_true: files('dbusaudio.c'))
|
|
|
|
audio_modules += {'dbus': module_ss}
|
|
|
|
endif
|
|
|
|
|
2020-08-17 12:47:55 +02:00
|
|
|
modules += {'audio': audio_modules}
|