Skip to content

Commit 40b2e80

Browse files
author
Stephen Hodgson
committed
Commented HRTF messages back in in favor of just commenting it out.
1 parent 9cee19a commit 40b2e80

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Assets/HoloToolkit/Sharing/Scripts/VoiceChat/MicrophoneReceiver.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,16 +248,16 @@ public void OnMessageReceived(NetworkConnection connection, NetworkInMessage mes
248248
float averageAmplitude = message.ReadFloat();
249249
UInt32 hrtfSourceID = (UInt32)message.ReadInt32();
250250
Vector3 hrtfPosition = new Vector3();
251-
//Vector3 hrtfDirection = new Vector3();
251+
Vector3 hrtfDirection = new Vector3();
252252
if (hrtfSourceID != 0)
253253
{
254254
hrtfPosition.x = message.ReadFloat();
255255
hrtfPosition.y = message.ReadFloat();
256256
hrtfPosition.z = message.ReadFloat();
257257

258-
//hrtfDirection.x = message.ReadFloat();
259-
//hrtfDirection.y = message.ReadFloat();
260-
//hrtfDirection.z = message.ReadFloat();
258+
hrtfDirection.x = message.ReadFloat();
259+
hrtfDirection.y = message.ReadFloat();
260+
hrtfDirection.z = message.ReadFloat();
261261

262262
Vector3 cameraPosRelativeToGlobalAnchor = Vector3.zero;
263263
Vector3 cameraDirectionRelativeToGlobalAnchor = Vector3.zero;

Assets/HoloToolkit/Sharing/Scripts/VoiceChat/MicrophoneTransmitter.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,9 @@ private void SendFixedSizedChunk(NetworkConnection connection, byte[] data, int
271271
msg.Write(cameraPosRelativeToGlobalAnchor.z);
272272

273273
// HRTF direction bits
274-
//msg.Write(cameraDirectionRelativeToGlobalAnchor.x);
275-
//msg.Write(cameraDirectionRelativeToGlobalAnchor.y);
276-
//msg.Write(cameraDirectionRelativeToGlobalAnchor.z);
274+
msg.Write(cameraDirectionRelativeToGlobalAnchor.x);
275+
msg.Write(cameraDirectionRelativeToGlobalAnchor.y);
276+
msg.Write(cameraDirectionRelativeToGlobalAnchor.z);
277277

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

0 commit comments

Comments
 (0)