Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Leander Schulten
Lichtsteuerung
Commits
d3913136
Commit
d3913136
authored
Oct 02, 2019
by
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
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitmodules
View file @
d3913136
[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
src/Lichtsteuerung.pro
View file @
d3913136
...
...
@@ -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
src/lib/RtAudio/.gitignore
0 → 100644
View file @
d3913136
*/*
\ No newline at end of file
src/lib/RtAudio/build_rtAudio.sh
0 → 100755
View file @
d3913136
#!/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
rtaudio
@
57c2c9d7
Subproject commit 57c2c9d7598a783a5167422cd744f4d3797141bb
src/lib/build_libs.sh
View file @
d3913136
...
...
@@ -20,4 +20,9 @@ cd aubio
./build_aubio.sh
cd
..
echo
$'
\n\n
Build RtAudio'
cd
RtAudio
./build_rtAudio.sh
cd
..
echo
"Lib installation complete"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment