mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-15 17:21:42 +02:00
static
git-svn-id: svn://elaine/murooma/trunk@310 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
8c413917bd
commit
5e9eebd7a7
2 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
VERSION = 0.01
|
VERSION = 0.01
|
||||||
CC = /usr/bin/g++
|
CC = /usr/bin/g++
|
||||||
CFLAGS = -std=gnu++0x -Wall -Wno-unused-function -O3 -D_REENTRANT -DVERSION=\"$(VERSION)\" -I..
|
CFLAGS = -std=gnu++0x -static-libgcc -static-libstdc++ -Wall -Wno-unused-function -O3 -D_REENTRANT -DVERSION=\"$(VERSION)\" -I..
|
||||||
LDFLAGS = -lrt -lpthread -lboost_system -lboost_program_options -lasound -logg -lvorbis -lvorbisenc
|
LDFLAGS = -lrt -lpthread -lboost_system -lboost_program_options -lasound -logg -lvorbis -lvorbisenc
|
||||||
|
|
||||||
OBJ = snapClient.o stream.o alsaPlayer.o clientConnection.o timeProvider.o oggDecoder.o pcmDecoder.o controller.o ../message/pcmChunk.o ../common/log.o ../message/sampleFormat.o
|
OBJ = snapClient.o stream.o alsaPlayer.o clientConnection.o timeProvider.o oggDecoder.o pcmDecoder.o controller.o ../message/pcmChunk.o ../common/log.o ../message/sampleFormat.o
|
||||||
|
|
|
@ -302,9 +302,9 @@ if (since.count() > 0)
|
||||||
else if (shortBuffer.full())
|
else if (shortBuffer.full())
|
||||||
{
|
{
|
||||||
if (chronos::usec(shortMedian) > chronos::usec(100))
|
if (chronos::usec(shortMedian) > chronos::usec(100))
|
||||||
setRealSampleRate(format.rate * 0.99999);
|
setRealSampleRate(format.rate * 0.9999);
|
||||||
else if (chronos::usec(shortMedian) < -chronos::usec(100))
|
else if (chronos::usec(shortMedian) < -chronos::usec(100))
|
||||||
setRealSampleRate(format.rate * 1.00001);
|
setRealSampleRate(format.rate * 1.0001);
|
||||||
}
|
}
|
||||||
|
|
||||||
updateBuffers(age.count());
|
updateBuffers(age.count());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue