Skip to content

Commit e05bb20

Browse files
Merge pull request #930 from StephenHodgson/HTK-MicTransmitterFixes
Fix for mismatched Mic network stream
2 parents dd737d1 + 40b2e80 commit e05bb20

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 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;
@@ -329,7 +329,7 @@ public void OnMessageReceived(NetworkConnection connection, NetworkInMessage mes
329329

330330
if (hrtfSourceID > 0)
331331
{
332-
// hrtf processing here
332+
// TODO hrtf processing here
333333
}
334334

335335
circularBuffer.Write(networkPacketBufferBytes, 0, networkPacketBufferBytes.Length);

0 commit comments

Comments
 (0)