Fix audio clock drift and adaptive jitter buffering
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user