From ef6c0582028ff8e1228e6031465c1c2d9d5d51b6 Mon Sep 17 00:00:00 2001 From: Benjamin Carlsson Date: Tue, 8 Sep 2026 04:45:39 +0000 Subject: [PATCH] Disable clock synchronization in the voice audio sink (#43704) Set the GStreamer audio sink's `slave-method` to `none` instead of `resample`, and disable sink synchronization with `set_sync(false)`. GitOrigin-RevId: a74f3e6d70e0d817c75bd963b31f16c69c2732ab --- codex-rs/voice-host/src/audio_sink.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codex-rs/voice-host/src/audio_sink.rs b/codex-rs/voice-host/src/audio_sink.rs index 0d466ac9f7..33f0062bbb 100644 --- a/codex-rs/voice-host/src/audio_sink.rs +++ b/codex-rs/voice-host/src/audio_sink.rs @@ -127,7 +127,8 @@ impl Sink { let sink: Self = glib::Object::new(); assert!(sink.imp().writer.set(writer).is_ok()); sink.set_provide_clock(false); - sink.set_property_from_str("slave-method", "resample"); + sink.set_property_from_str("slave-method", "none"); + sink.set_sync(false); sink.set_async(false); sink.set_enable_last_sample(false); sink