Skip to content

Commit

Permalink
Don't play the rtc audio source locally.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc committed Apr 16, 2024
1 parent b0f5508 commit 005674c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Runtime/Scripts/AudioSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ private void OnAudioRead(float[] data, int channels, int sampleRate)
_sampleRate = sampleRate;
_pending = true;
}

// Don't play the audio locally
Array.Clear(data, 0, data.Length);
}
}
}

0 comments on commit 005674c

Please sign in to comment.