Commit d3913136 authored by Leander Schulten's avatar Leander Schulten
Browse files

RtAudio: Add RtAudio, a lib for recording audio from an audio input

parent 67b0f270
Pipeline #189716 passed with stage
in 7 minutes and 11 seconds
[submodule "src/lib/aubio/aubio.git"]
path = src/lib/aubio/aubio.git
url = https://github.com/aubio/aubio
[submodule "src/lib/RtAudio/rtaudio"]
path = src/lib/RtAudio/rtaudio
url = https://github.com/thestk/rtaudio.git
......@@ -276,3 +276,7 @@ win32-msvc{
LIBS += -L$$PWD/'lib/AudioFFT/dll/AudioFFT.dll'
INCLUDEPATH += $$PWD/'lib/AudioFFT/include'
}
# RTAudio
INCLUDEPATH += $$PWD/lib/RtAudio/include
LIBS += -L$$PWD/lib/RtAudio/lib -lrtaudio
*/*
\ No newline at end of file
#!/bin/bash
# see https://github.com/thestk/rtaudio/blob/master/install.txt
# add and update git submodule
git submodule init
git submodule update
# cd into git repo
GIT_DIR=rtaudio
cd $GIT_DIR
# build
if [[ "$OSTYPE" == "msys" ]] || ! [[ -z "$GITLAB_CI" ]]; then
# we are on windows or on the gitlab ci
./autogen.sh --with-wasapi --host=mingw32
FILES_TO_COPY="librtaudio.a"
elif [[ "$OSTYPE" == "darwin"* ]]; then
# macOS
./autogen.sh --with-core
FILES_TO_COPY="librtaudio.dylib librtaudio.6.dylib"
else
#linux
./autogen.sh --with-alsa
FILES_TO_COPY="librtaudio.so librtaudio.6.so"
fi
make
cd ..
#copy headers and lib
mkdir -p lib
cd $GIT_DIR/.libs/
cp $FILES_TO_COPY ../../lib
cd ../../
mkdir -p include
cp $GIT_DIR/RtAudio.h include
Subproject commit 57c2c9d7598a783a5167422cd744f4d3797141bb
......@@ -20,4 +20,9 @@ cd aubio
./build_aubio.sh
cd ..
echo $'\n\nBuild RtAudio'
cd RtAudio
./build_rtAudio.sh
cd ..
echo "Lib installation complete"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment