From 492795f7e5a7ef7c54e2e6717c414d30c6c2c8a1 Mon Sep 17 00:00:00 2001 From: Zach Pomerantz Date: Thu, 19 Jan 2017 18:08:45 -0500 Subject: [PATCH] audio client cosmetics --- libraries/audio-client/src/AudioClient.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libraries/audio-client/src/AudioClient.cpp b/libraries/audio-client/src/AudioClient.cpp index eb2b0f87e0..2358c20a2b 100644 --- a/libraries/audio-client/src/AudioClient.cpp +++ b/libraries/audio-client/src/AudioClient.cpp @@ -1113,8 +1113,7 @@ void AudioClient::prepareLocalAudioInjectors() { samples = frames * AudioConstants::STEREO; _localInjectorsBuffer.writeSamples(_localOutputScratchBuffer, samples); - } - else { + } else { // write to local injectors' ring buffer samples = AudioConstants::NETWORK_FRAME_SAMPLES_STEREO; _localInjectorsBuffer.writeSamples(_localScratchBuffer, @@ -1675,7 +1674,6 @@ qint64 AudioClient::AudioOutputIODevice::readData(char * data, qint64 maxSize) { bytesWritten = framesPopped * AudioConstants::SAMPLE_SIZE * deviceChannelCount; } else { // nothing on network, don't grab anything from injectors, and just return 0s - // this will flood the log: qCDebug(audioclient, "empty/partial network buffer"); memset(data, 0, maxSize); bytesWritten = maxSize; }