From a37c8b30feb6b5f28e67b3a865e62bd141476f1d Mon Sep 17 00:00:00 2001 From: Siavash Sameni Date: Sun, 12 Apr 2026 17:25:11 +0400 Subject: [PATCH] fix(native): add missing bt_active field to stall detector config Co-Authored-By: Claude Opus 4.6 (1M context) --- crates/wzp-native/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/wzp-native/src/lib.rs b/crates/wzp-native/src/lib.rs index cec4361..8999380 100644 --- a/crates/wzp-native/src/lib.rs +++ b/crates/wzp-native/src/lib.rs @@ -323,11 +323,12 @@ pub unsafe extern "C" fn wzp_native_audio_write_playout(input: *const i16, in_le b.playout.read_idx.store(0, std::sync::atomic::Ordering::Relaxed); b.capture.write_idx.store(0, std::sync::atomic::Ordering::Relaxed); b.capture.read_idx.store(0, std::sync::atomic::Ordering::Relaxed); - // Re-start + // Re-start (stall detector — always non-BT mode) let config = WzpOboeConfig { sample_rate: 48_000, frames_per_burst: FRAME_SAMPLES as i32, channel_count: 1, + bt_active: 0, }; let rings = WzpOboeRings { capture_buf: b.capture.buf_ptr(),