Unity-Technologies / Unity-Technologies/com.unity.webrtc
[BUG]: audio latency - android to windows insertedSamplesForDeceleration
Open
@karasusan is already working on this.
Since Jul 29, 2022.
bug
issued
- Dominant language
- Assembly
- Stars
- 852
- Forks
- 238
- PR merge metrics
- No merged PRs in 30d
Description
Package version
2.4.0-exp.8
Environment
* OS: Windows and Android
* Unity version:2019.4.39f1
Steps To Reproduce
- launch a Windows and Android webrtc client in the same room
- periodically check for
RTCInboundRTPStreamStatson "audio" streams - track
removedSamplesForAccelerationandinsertedSamplesForDecelerationon both android and windows every few seconds - mute and unmute the microphone a bunch of times, but keep streaming
- observe the audio latency from android to windows increases to over a second, at the same time
insertedSamplesForDecelerationincreases past the number of samples per second of the audio stream. - also observe that
removedSamplesForAccelerationremains at zero on windows, while it occasionally increases on android.
Current Behavior
The stream only decelerates when streaming android to windows, resulting in a lot of extra latency, that only increases.
Expected Behavior
Nonzero removedSamplesForAcceleration, eventually, when streaming android to windows.
Anything else?

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.