From 30b22a13ad0878c178eda7dc2d2a4d5e8034ac36 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Mon, 16 Dec 2013 16:30:04 -0800 Subject: [PATCH] remove an unecessary condition in Audio.cpp --- interface/src/Audio.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/interface/src/Audio.cpp b/interface/src/Audio.cpp index add99ec4f2..d898bd8566 100644 --- a/interface/src/Audio.cpp +++ b/interface/src/Audio.cpp @@ -425,9 +425,7 @@ void Audio::addReceivedAudioToBuffer(const QByteArray& audioByteArray) { qDebug() << "Buffer is starved and doesn't have enough samples to start. Held back.\n"; } else { // We are either already playing back, or we have enough audio to start playing back. - if (_ringBuffer.isStarved()) { - _ringBuffer.setIsStarved(false); - } + _ringBuffer.setIsStarved(false); // copy the samples we'll resample from the ring buffer - this also // pushes the read pointer of the ring buffer forwards