Skip to content

Commit

Permalink
Commented HRTF messages back in in favor of just commenting it out.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Hodgson committed Sep 8, 2017
1 parent 9cee19a commit 40b2e80
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@ private void SendFixedSizedChunk(NetworkConnection connection, byte[] data, int
msg.Write(cameraPosRelativeToGlobalAnchor.z);

// HRTF direction bits
//msg.Write(cameraDirectionRelativeToGlobalAnchor.x);
//msg.Write(cameraDirectionRelativeToGlobalAnchor.y);
//msg.Write(cameraDirectionRelativeToGlobalAnchor.z);
msg.Write(cameraDirectionRelativeToGlobalAnchor.x);
msg.Write(cameraDirectionRelativeToGlobalAnchor.y);
msg.Write(cameraDirectionRelativeToGlobalAnchor.z);

msg.WriteArray(data, (uint)dataCountFloats * 4);

Expand Down

0 comments on commit 40b2e80

Please sign in to comment.