mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-30 22:59:51 +02:00
strip snapclient binary
This commit is contained in:
parent
7d58f006a2
commit
1de4d32776
5 changed files with 6 additions and 3 deletions
Binary file not shown.
Binary file not shown.
|
@ -26,13 +26,15 @@ ifdef ANDROID
|
|||
# ii. ./make-standalone-toolchain.sh --arch=arm --platform=android-14 --install-dir=/home/johannes/Develop/android-toolchain-arm-14 --ndk-dir=/home/johannes/Develop/android-ndk-r10e --system=linux-x86_64
|
||||
# build with:
|
||||
# make ANDROID=1
|
||||
CXX = /home/johannes/Develop/android-toolchain-arm-14/bin/arm-linux-androideabi-g++
|
||||
CXX = $(NDK_DIR)/bin/arm-linux-androideabi-g++
|
||||
STRIP = $(NDK_DIR)/bin/arm-linux-androideabi-strip
|
||||
CFLAGS = $(ADD_CFLAGS) -std=c++0x -Wall -Wno-unused-function -fPIC -O3 -pthread -DASIO_STANDALONE -DANDROID -DVERSION=\"$(VERSION)\" -I.. -I../externals/asio/asio/include -I../externals/popl/include -I/home/johannes/Develop/build/arm/include
|
||||
#-march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16
|
||||
LDFLAGS = -L/home/johannes/Develop/build/arm/lib -pie -lFLAC -lOpenSLES
|
||||
OBJ = snapClient.o stream.o clientConnection.o timeProvider.o player/player.o player/openslPlayer.o decoder/pcmDecoder.o decoder/flacDecoder.o controller.o ../message/pcmChunk.o ../common/log.o ../message/sampleFormat.o
|
||||
else
|
||||
CXX = /usr/bin/g++
|
||||
STRIP = strip
|
||||
CFLAGS = -std=c++0x -Wall -Wno-unused-function -O3 -pthread -DASIO_STANDALONE -DVERSION=\"$(VERSION)\" -I.. -I../externals/asio/asio/include -I../externals/popl/include
|
||||
LDFLAGS = -lrt -lasound -logg -lvorbis -lFLAC -lavahi-client -lavahi-common
|
||||
OBJ = snapClient.o stream.o clientConnection.o timeProvider.o player/player.o player/alsaPlayer.o decoder/oggDecoder.o decoder/pcmDecoder.o decoder/flacDecoder.o controller.o browseAvahi.o ../message/pcmChunk.o ../common/log.o ../message/sampleFormat.o
|
||||
|
@ -45,7 +47,7 @@ all: $(TARGET)
|
|||
|
||||
$(TARGET): $(OBJ)
|
||||
$(CXX) $(CFLAGS) -o $(BIN) $(OBJ) $(LDFLAGS)
|
||||
# strip $(BIN)
|
||||
$(STRIP) $(BIN)
|
||||
|
||||
%.o: %.cpp
|
||||
$(CXX) $(CFLAGS) -c $< -o $@
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
export NDK_DIR="/home/johannes/Develop/android-toolchain-arm-14"
|
||||
export ADD_CFLAGS=""
|
||||
make clean; make ANDROID=1 -j 3; cp ./snapclient ../android/Snapcast/src/main/assets/bin/armeabi/
|
||||
export ADD_CFLAGS="-march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16"
|
||||
|
|
|
@ -191,7 +191,7 @@ void OpenslPlayer::initOpensl()
|
|||
|
||||
const SampleFormat& format = stream_->getFormat();
|
||||
|
||||
frames_ = 960;//rate / 50; // => 50ms
|
||||
frames_ = 1920;//960;//rate / 50; // => 50ms
|
||||
|
||||
buff_size = frames_ * format.channels * 2 /* 2 -> sample size */;
|
||||
logO << "frames: " << frames_ << ", channels: " << format.channels << ", rate: " << format.rate << ", buff: " << buff_size << "\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue