From 376756d41399521c42bc52d6d8a714df6c0e3c76 Mon Sep 17 00:00:00 2001
From: Brad Hefta-Gaub <brad@highfidelity.io>
Date: Thu, 25 Aug 2016 09:58:36 -0700
Subject: [PATCH] include the codec name in the agent avatar audio stream

---
 assignment-client/src/Agent.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/assignment-client/src/Agent.cpp b/assignment-client/src/Agent.cpp
index 65e193dec6..350d359412 100644
--- a/assignment-client/src/Agent.cpp
+++ b/assignment-client/src/Agent.cpp
@@ -392,7 +392,6 @@ void Agent::processAgentAvatarAndAudio(float deltaTime) {
             const int16_t* nextSoundOutput = NULL;
 
             if (_avatarSound) {
-
                 const QByteArray& soundByteArray = _avatarSound->getByteArray();
                 nextSoundOutput = reinterpret_cast<const int16_t*>(soundByteArray.data()
                     + _numAvatarSoundSentBytes);
@@ -442,6 +441,10 @@ void Agent::processAgentAvatarAndAudio(float deltaTime) {
                 audioPacket->writePrimitive(headOrientation);
 
             } else if (nextSoundOutput) {
+                // write the codec
+                QString codecName;
+                audioPacket->writeString(codecName);
+
                 // assume scripted avatar audio is mono and set channel flag to zero
                 audioPacket->writePrimitive((quint8)0);