git-svn-id: svn://elaine/murooma/trunk@310 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
(no author) 2014-10-29 21:08:30 +00:00
parent 8c413917bd
commit 5e9eebd7a7
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
VERSION = 0.01
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
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

View file

@ -302,9 +302,9 @@ if (since.count() > 0)
else if (shortBuffer.full())
{
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))
setRealSampleRate(format.rate * 1.00001);
setRealSampleRate(format.rate * 1.0001);
}
updateBuffers(age.count());