From 29f263a29668e5901865c8d60aadf772183b4026 Mon Sep 17 00:00:00 2001 From: David Kelly Date: Thu, 2 Mar 2017 12:43:41 -0700 Subject: [PATCH] oh man, this was hard to find --- assignment-client/src/Agent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assignment-client/src/Agent.cpp b/assignment-client/src/Agent.cpp index d20ef2e687..be23dcfa25 100644 --- a/assignment-client/src/Agent.cpp +++ b/assignment-client/src/Agent.cpp @@ -637,8 +637,6 @@ void Agent::processAgentAvatarAudio() { audioPacket->seek(sizeof(quint16)); if (silentFrame) { - // no matter what, the loudness should be set to 0 - computeLoudness(nullptr, scriptedAvatar); if (!_isListeningToAudioStream) { // if we have a silent frame and we're not listening then just send nothing and break out of here @@ -658,6 +656,8 @@ void Agent::processAgentAvatarAudio() { audioPacket->writePrimitive(scriptedAvatar->getPosition()); audioPacket->writePrimitive(glm::vec3(0)); + // no matter what, the loudness should be set to 0 + computeLoudness(nullptr, scriptedAvatar); } else if (nextSoundOutput) { // write the codec