2020-10-14 15:11:18 +03:00
|
|
|
softmmu_ss.add([spice_headers, files('audio.c')])
|
2020-08-17 13:47:55 +03:00
|
|
|
softmmu_ss.add(files(
|
2023-01-24 15:19:16 +03:00
|
|
|
'audio-hmp-cmds.c',
|
2020-08-17 13:47:55 +03:00
|
|
|
'audio_legacy.c',
|
|
|
|
'mixeng.c',
|
|
|
|
'noaudio.c',
|
|
|
|
'wavaudio.c',
|
|
|
|
'wavcapture.c',
|
|
|
|
))
|
|
|
|
|
2022-02-15 13:05:44 +03:00
|
|
|
softmmu_ss.add(when: coreaudio, if_true: files('coreaudio.m'))
|
2021-10-07 16:06:09 +03:00
|
|
|
softmmu_ss.add(when: dsound, if_true: files('dsoundaudio.c', 'audio_win_int.c'))
|
2020-08-17 13:47:55 +03:00
|
|
|
|
|
|
|
audio_modules = {}
|
|
|
|
foreach m : [
|
2021-10-07 16:06:09 +03: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')],
|
2022-09-07 16:23:42 +03:00
|
|
|
['sndio', sndio, files('sndioaudio.c')],
|
2021-10-07 16:06:09 +03:00
|
|
|
['spice', spice, files('spiceaudio.c')]
|
2020-08-17 13:47:55 +03:00
|
|
|
]
|
2021-10-07 16:06:09 +03:00
|
|
|
if m[1].found()
|
2020-08-17 13:47:55 +03:00
|
|
|
module_ss = ss.source_set()
|
2021-10-07 16:06:09 +03:00
|
|
|
module_ss.add(m[1], m[2])
|
|
|
|
audio_modules += {m[0] : module_ss}
|
2020-08-17 13:47:55 +03:00
|
|
|
endif
|
|
|
|
endforeach
|
|
|
|
|
2021-03-09 16:15:28 +03:00
|
|
|
if dbus_display
|
|
|
|
module_ss = ss.source_set()
|
2022-06-22 18:49:18 +03:00
|
|
|
module_ss.add(when: gio, if_true: files('dbusaudio.c'))
|
2021-03-09 16:15:28 +03:00
|
|
|
audio_modules += {'dbus': module_ss}
|
|
|
|
endif
|
|
|
|
|
2020-08-17 13:47:55 +03:00
|
|
|
modules += {'audio': audio_modules}
|