mirror of https://github.com/PCSX2/pcsx2.git
Fix build without pulseaudio.
This commit is contained in:
parent
76c98e7140
commit
3b073343cc
|
@ -203,7 +203,6 @@ if(PULSEAUDIO_FOUND)
|
||||||
include_directories(${PULSEAUDIO_INCLUDE_DIR})
|
include_directories(${PULSEAUDIO_INCLUDE_DIR})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
if(LIBXML2_FOUND)
|
if(LIBXML2_FOUND)
|
||||||
include_directories(${LIBXML2_INCLUDE_DIRS})
|
include_directories(${LIBXML2_INCLUDE_DIRS})
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -48,6 +48,10 @@ if(PORTAUDIO_FOUND)
|
||||||
set(pcsx2FinalFlags ${pcsx2FinalFlags} -DSPU2X_PORTAUDIO)
|
set(pcsx2FinalFlags ${pcsx2FinalFlags} -DSPU2X_PORTAUDIO)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(PULSEAUDIO_FOUND)
|
||||||
|
set(pcsx2FinalFlags ${pcsx2FinalFlags} -DSPU2X_PULSEAUDIO)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(XDG_STD)
|
if(XDG_STD)
|
||||||
set(pcsx2FinalFlags ${pcsx2FinalFlags} -DXDG_STD)
|
set(pcsx2FinalFlags ${pcsx2FinalFlags} -DXDG_STD)
|
||||||
endif()
|
endif()
|
||||||
|
@ -370,7 +374,6 @@ set(pcsx2USBSources
|
||||||
USB/linux/config-gtk.cpp
|
USB/linux/config-gtk.cpp
|
||||||
USB/linux/util.cpp
|
USB/linux/util.cpp
|
||||||
USB/qemu-usb/input-keymap-linux-to-qcode.cpp
|
USB/qemu-usb/input-keymap-linux-to-qcode.cpp
|
||||||
USB/usb-mic/audiodev-pulse.cpp
|
|
||||||
USB/usb-pad/api_init_linux.cpp
|
USB/usb-pad/api_init_linux.cpp
|
||||||
USB/usb-eyetoy/api_init_linux.cpp
|
USB/usb-eyetoy/api_init_linux.cpp
|
||||||
USB/usb-hid/api_init_linux.cpp
|
USB/usb-hid/api_init_linux.cpp
|
||||||
|
@ -432,9 +435,12 @@ set(pcsx2USBHeaders
|
||||||
USB/usb-hid/evdev/evdev.cpp
|
USB/usb-hid/evdev/evdev.cpp
|
||||||
USB/usb-eyetoy/cam-linux.h
|
USB/usb-eyetoy/cam-linux.h
|
||||||
USB/qemu-usb/input-keymap-linux-to-qcode.h
|
USB/qemu-usb/input-keymap-linux-to-qcode.h
|
||||||
USB/usb-mic/audiodev-pulse.h
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(PULSEAUDIO_FOUND)
|
||||||
|
set(pcsx2USBSources ${pcsx2USBSources} USB/usb-mic/audiodev-pulse.cpp)
|
||||||
|
set(pcsx2USBHeaders ${pcsx2USBHeaders} USB/usb-mic/audiodev-pulse.h)
|
||||||
|
endif()
|
||||||
|
|
||||||
# DebugTools sources
|
# DebugTools sources
|
||||||
set(pcsx2DebugToolsSources
|
set(pcsx2DebugToolsSources
|
||||||
|
@ -944,7 +950,6 @@ set(pcsx2FinalLibs
|
||||||
${SDL2_LIBRARIES}
|
${SDL2_LIBRARIES}
|
||||||
${PCAP_LIBRARY}
|
${PCAP_LIBRARY}
|
||||||
${LIBSAMPLERATE_LIBRARIES}
|
${LIBSAMPLERATE_LIBRARIES}
|
||||||
${PULSEAUDIO_LIBRARIES}
|
|
||||||
${LIBXML2_LIBRARIES}
|
${LIBXML2_LIBRARIES}
|
||||||
${Platform_Libs}
|
${Platform_Libs}
|
||||||
)
|
)
|
||||||
|
@ -953,6 +958,10 @@ if(PORTAUDIO_FOUND)
|
||||||
set(pcsx2FinalLibs ${pcsx2FinalLibs} ${PORTAUDIO_LIBRARIES})
|
set(pcsx2FinalLibs ${pcsx2FinalLibs} ${PORTAUDIO_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(PULSEAUDIO_FOUND)
|
||||||
|
set(pcsx2FinalLibs ${pcsx2FinalLibs} ${PULSEAUDIO_LIBRARIES})
|
||||||
|
endif()
|
||||||
|
|
||||||
if(BUILTIN_GS)
|
if(BUILTIN_GS)
|
||||||
set(pcsx2FinalLibs "${pcsx2FinalLibs} GSdx")
|
set(pcsx2FinalLibs "${pcsx2FinalLibs} GSdx")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -15,11 +15,15 @@
|
||||||
|
|
||||||
#include "audiodeviceproxy.h"
|
#include "audiodeviceproxy.h"
|
||||||
#include "audiodev-noop.h"
|
#include "audiodev-noop.h"
|
||||||
|
#ifdef SPU2X_PULSEAUDIO
|
||||||
#include "audiodev-pulse.h"
|
#include "audiodev-pulse.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
void usb_mic::RegisterAudioDevice::Register()
|
void usb_mic::RegisterAudioDevice::Register()
|
||||||
{
|
{
|
||||||
auto& inst = RegisterAudioDevice::instance();
|
auto& inst = RegisterAudioDevice::instance();
|
||||||
inst.Add(audiodev_noop::APINAME, new AudioDeviceProxy<audiodev_noop::NoopAudioDevice>());
|
inst.Add(audiodev_noop::APINAME, new AudioDeviceProxy<audiodev_noop::NoopAudioDevice>());
|
||||||
|
#ifdef SPU2X_PULSEAUDIO
|
||||||
inst.Add(audiodev_pulse::APINAME, new AudioDeviceProxy<audiodev_pulse::PulseAudioDevice>());
|
inst.Add(audiodev_pulse::APINAME, new AudioDeviceProxy<audiodev_pulse::PulseAudioDevice>());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue