2020-10-14 12:11:18 +00:00
|
|
|
softmmu_ss.add([spice_headers, files('audio.c')])
|
2020-08-17 10:47:55 +00:00
|
|
|
softmmu_ss.add(files(
|
|
|
|
'audio_legacy.c',
|
|
|
|
'mixeng.c',
|
|
|
|
'noaudio.c',
|
|
|
|
'wavaudio.c',
|
|
|
|
'wavcapture.c',
|
|
|
|
))
|
|
|
|
|
2021-10-07 13:06:09 +00: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 10:47:55 +00:00
|
|
|
|
|
|
|
audio_modules = {}
|
|
|
|
foreach m : [
|
2021-10-07 13:06:09 +00: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 10:47:55 +00:00
|
|
|
]
|
2021-10-07 13:06:09 +00:00
|
|
|
if m[1].found()
|
2020-08-17 10:47:55 +00:00
|
|
|
module_ss = ss.source_set()
|
2021-10-07 13:06:09 +00:00
|
|
|
module_ss.add(m[1], m[2])
|
|
|
|
audio_modules += {m[0] : module_ss}
|
2020-08-17 10:47:55 +00:00
|
|
|
endif
|
|
|
|
endforeach
|
|
|
|
|
2021-03-09 13:15:28 +00:00
|
|
|
if dbus_display
|
|
|
|
module_ss = ss.source_set()
|
2022-02-03 15:25:09 +00:00
|
|
|
module_ss.add(when: [gio, pixman, opengl, 'CONFIG_GIO'], if_true: files('dbusaudio.c'))
|
2021-03-09 13:15:28 +00:00
|
|
|
audio_modules += {'dbus': module_ss}
|
|
|
|
endif
|
|
|
|
|
2020-08-17 10:47:55 +00:00
|
|
|
modules += {'audio': audio_modules}
|