From c5927d37e7ccf9d67d4faa535b90d417f0c42f45 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Tue, 24 Oct 2023 02:27:07 +1100 Subject: [PATCH] 3rdparty/portaudio: Enabled PulseAudio backend for Linux. [invertego] --- scripts/src/3rdparty.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/src/3rdparty.lua b/scripts/src/3rdparty.lua index 2ded17d2ccf..b65cdd79576 100755 --- a/scripts/src/3rdparty.lua +++ b/scripts/src/3rdparty.lua @@ -1677,6 +1677,17 @@ project "portaudio" MAME_DIR .. "3rdparty/portaudio/src/hostapi/alsa/pa_linux_alsa.c", MAME_DIR .. "3rdparty/portaudio/src/hostapi/oss/pa_unix_oss.c", } + if _OPTIONS["NO_USE_PULSEAUDIO"]~="1" then + defines { + "PA_USE_PULSEAUDIO=1", + } + files { + MAME_DIR .. "3rdparty/portaudio/src/hostapi/pulseaudio/pa_linux_pulseaudio_block.c", + MAME_DIR .. "3rdparty/portaudio/src/hostapi/pulseaudio/pa_linux_pulseaudio.c", + MAME_DIR .. "3rdparty/portaudio/src/hostapi/pulseaudio/pa_linux_pulseaudio_cb.c", + MAME_DIR .. "3rdparty/portaudio/src/common/pa_ringbuffer.c", + } + end end if _OPTIONS["targetos"]=="macosx" then defines {