Browse Source

Build and link PulseAudio on Linux.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
d297b0ee7f
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      Makefile
  2. +1
    -1
      dep/Makefile
  3. +1
    -1
      src/rtaudio.cpp

+ 1
- 1
Makefile View File

@@ -38,7 +38,7 @@ build/dep/osdialog/osdialog_gtk3.c.o: FLAGS += $(shell pkg-config --cflags gtk+-
LDFLAGS += -static-libstdc++ -static-libgcc
LDFLAGS += dep/lib/libGLEW.a dep/lib/libglfw3.a dep/lib/libjansson.a dep/lib/libcurl.a dep/lib/libssl.a dep/lib/libcrypto.a dep/lib/libarchive.a dep/lib/libzstd.a dep/lib/libspeexdsp.a dep/lib/libsamplerate.a dep/lib/librtmidi.a dep/lib/librtaudio.a
LDFLAGS += -Wl,--no-whole-archive
LDFLAGS += -lpthread -lGL -ldl -lX11 -lasound -ljack
LDFLAGS += -lpthread -lGL -ldl -lX11 -lasound -ljack -lpulse -lpulse-simple
LDFLAGS += $(shell pkg-config --libs gtk+-3.0)

STANDALONE_TARGET := Rack


+ 1
- 1
dep/Makefile View File

@@ -208,7 +208,7 @@ $(rtmidi): | rtmidi-4.0.0

RTAUDIO_FLAGS += -DRTAUDIO_BUILD_STATIC_LIBS=ON -DRTAUDIO_BUILD_TESTING=OFF
ifdef ARCH_LIN
RTAUDIO_FLAGS += -DRTAUDIO_API_ALSA=ON -DRTAUDIO_API_JACK=ON -DRTAUDIO_API_PULSE=OFF -DRTAUDIO_API_OSS=OFF
RTAUDIO_FLAGS += -DRTAUDIO_API_ALSA=ON -DRTAUDIO_API_JACK=ON -DRTAUDIO_API_PULSE=ON -DRTAUDIO_API_OSS=OFF
endif
ifdef ARCH_MAC
RTAUDIO_FLAGS += -DRTAUDIO_API_CORE=ON -DRTAUDIO_API_PULSE=OFF -DRTAUDIO_API_JACK=OFF


+ 1
- 1
src/rtaudio.cpp View File

@@ -372,8 +372,8 @@ void rtaudioInit() {
// I don't like the order returned by getCompiledApi(), so reorder it here.
std::vector<RtAudio::Api> orderedApis = {
RtAudio::LINUX_ALSA,
RtAudio::UNIX_JACK,
RtAudio::LINUX_PULSE,
RtAudio::UNIX_JACK,
RtAudio::LINUX_OSS,
RtAudio::WINDOWS_WASAPI,
RtAudio::WINDOWS_ASIO,


Loading…
Cancel
Save