Fix audio clock drift and adaptive jitter buffering
.NET port / test (macos-latest) (push) Canceled after 0s
.NET port / test (ubuntu-24.04) (push) Canceled after 0s
.NET port / test (windows-latest) (push) Canceled after 0s
.NET port / apple-client (push) Canceled after 0s

This commit is contained in:
2026-09-20 16:26:03 +02:00
parent 3ee0df11a9
commit dd811a0bb8
23 changed files with 401 additions and 61 deletions
@@ -159,7 +159,11 @@ public sealed partial class VoiceCatClient : IDisposable
{
try
{
if (backend is not null && playback is null) playback = backend.OpenPlayback();
if (backend is not null && playback is null)
{
playback = backend.OpenPlayback();
playback.BufferMilliseconds = core.Audio.DeviceBufferMilliseconds;
}
var result = core.SubscribeVoiceAsync().GetAwaiter().GetResult();
if (!result.Ok) { Interlocked.Exchange(ref playback, null)?.Dispose(); }
return result.Ok ? VcResult.Ok : VcResult.Audio;