Unity-Technologies / com.unity.webrtc

WebRTC package for Unity
Other
753 stars 191 forks source link

fix: Support calling AudioStreamTrack.SetData on worker thread #926

Closed karasusan closed 1 year ago

karasusan commented 1 year ago

AudioStreamTrack.SetData is not able to called from the worker thread.

This PR adds public void SetData(ReadOnlySpan span, int channels, int sampleRate) to set audio buffer from the worker thread.