From f3797798d3083af1aafb26739622bd0f3a9984f0 Mon Sep 17 00:00:00 2001 From: Ken Cooke Date: Tue, 23 May 2017 15:33:37 -0700 Subject: [PATCH] Cleanup --- assignment-client/src/Agent.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/assignment-client/src/Agent.cpp b/assignment-client/src/Agent.cpp index ef396a06b3..469ca9f178 100644 --- a/assignment-client/src/Agent.cpp +++ b/assignment-client/src/Agent.cpp @@ -627,20 +627,6 @@ void Agent::encodeFrameOfZeros(QByteArray& encodedZeros) { } void Agent::computeLoudness(const QByteArray* decodedBuffer, QSharedPointer scriptableAvatar) { - //float loudness = 0.0f; - //if (decodedBuffer) { - // auto soundData = reinterpret_cast(decodedBuffer->constData()); - // int numFrames = decodedBuffer->size() / sizeof(int16_t); - // // now iterate and come up with average - // if (numFrames > 0) { - // for(int i = 0; i < numFrames; i++) { - // loudness += (float) std::abs(soundData[i]); - // } - // loudness /= numFrames; - // } - //} - //scriptableAvatar->setAudioLoudness(loudness); - float lastInputLoudness = 0.0f; if (decodedBuffer) { auto samples = reinterpret_cast(decodedBuffer->constData());