Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added compability with rtaudio6 and an automatic build script #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
echo "Building player..."
g++ -O2 src/rt_player/main.cpp -o brstm_rt -lrtaudio -lpthread -Wall
echo "Building converter..."
g++ -O2 -std=c++0x src/converter.cpp -o brstm_converter -Wall
echo "Building player..."
if [[ -f /usr/lib/librtaudio.so.7 ]]; then echo "rtaudio 6 detected..." && g++ -O2 src/rt_player/main_rtaudio6.cpp -o brstm_rt -lrtaudio -lpthread -Wall
elif [[ -f /usr/lib/librtaudio.so.6 ]]; then echo "rtaudio 5 detected..." g++ -O2 src/rt_player/main.cpp -o brstm_rt -lrtaudio -lpthread -Wall
else echo -e "\033[31mRTAUDIO WAS NOT DETECTED - UNABLE TO BUILD PLAYER\033[0m"
fi
#echo "Building decoder..."
#g++ -O2 src/decoder.cpp -o brstm_decoder
#echo "Building encoder..."
Expand Down
Loading