Skip to content

Commit

Permalink
Merge pull request #930 from StephenHodgson/HTK-MicTransmitterFixes
Browse files Browse the repository at this point in the history
Fix for mismatched Mic network stream
  • Loading branch information
StephenHodgson authored Sep 9, 2017
2 parents dd737d1 + 40b2e80 commit e05bb20
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,16 +248,16 @@ public void OnMessageReceived(NetworkConnection connection, NetworkInMessage mes
float averageAmplitude = message.ReadFloat();
UInt32 hrtfSourceID = (UInt32)message.ReadInt32();
Vector3 hrtfPosition = new Vector3();
//Vector3 hrtfDirection = new Vector3();
Vector3 hrtfDirection = new Vector3();
if (hrtfSourceID != 0)
{
hrtfPosition.x = message.ReadFloat();
hrtfPosition.y = message.ReadFloat();
hrtfPosition.z = message.ReadFloat();

//hrtfDirection.x = message.ReadFloat();
//hrtfDirection.y = message.ReadFloat();
//hrtfDirection.z = message.ReadFloat();
hrtfDirection.x = message.ReadFloat();
hrtfDirection.y = message.ReadFloat();
hrtfDirection.z = message.ReadFloat();

Vector3 cameraPosRelativeToGlobalAnchor = Vector3.zero;
Vector3 cameraDirectionRelativeToGlobalAnchor = Vector3.zero;
Expand Down Expand Up @@ -329,7 +329,7 @@ public void OnMessageReceived(NetworkConnection connection, NetworkInMessage mes

if (hrtfSourceID > 0)
{
// hrtf processing here
// TODO hrtf processing here
}

circularBuffer.Write(networkPacketBufferBytes, 0, networkPacketBufferBytes.Length);
Expand Down

0 comments on commit e05bb20

Please sign in to comment.