2023-06-13 15:33:47 +02:00
|
|
|
system_ss.add([spice_headers, files('audio.c')])
|
|
|
|
system_ss.add(files(
|
2023-01-24 13:19:16 +01:00
|
|
|
'audio-hmp-cmds.c',
|
2020-08-17 12:47:55 +02:00
|
|
|
'mixeng.c',
|
|
|
|
'noaudio.c',
|
|
|
|
'wavaudio.c',
|
|
|
|
'wavcapture.c',
|
|
|
|
))
|
|
|
|
|
2023-06-13 15:33:47 +02:00
|
|
|
system_ss.add(when: coreaudio, if_true: files('coreaudio.m'))
|
|
|
|
system_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')],
|
2022-09-07 15:23:42 +02:00
|
|
|
['sndio', sndio, files('sndioaudio.c')],
|
2023-04-17 12:56:54 +02:00
|
|
|
['pipewire', pipewire, files('pwaudio.c')],
|
2021-10-07 15:06:09 +02:00
|
|
|
['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()
|
2023-06-30 23:41:56 +02:00
|
|
|
module_ss.add(when: [gio, pixman], if_true: files('dbusaudio.c'))
|
2021-03-09 14:15:28 +01:00
|
|
|
audio_modules += {'dbus': module_ss}
|
|
|
|
endif
|
|
|
|
|
2020-08-17 12:47:55 +02:00
|
|
|
modules += {'audio': audio_modules}
|