From bc786a02b4f7853548d03e08a7555cc2438b6cc6 Mon Sep 17 00:00:00 2001 From: Filip Kojro Date: Tue, 20 Oct 2026 00:08:17 +0200 Subject: [PATCH] always send 48khz --- client/src/audio_streams.rs | 2 +- client/src/tui.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/audio_streams.rs b/client/src/audio_streams.rs index f3b7617..eaf0d82 100644 --- a/client/src/audio_streams.rs +++ b/client/src/audio_streams.rs @@ -257,7 +257,7 @@ pub async fn audio_stream_spawner( client_id: client_id, stream_id: current_stream_id, channels: force_channels, - sample_rate: input_device_config.sample_rate(), + sample_rate: SAMPLE_RATE_48K, })); break; } diff --git a/client/src/tui.rs b/client/src/tui.rs index d0bae39..671eb36 100644 --- a/client/src/tui.rs +++ b/client/src/tui.rs @@ -1,5 +1,5 @@ use cpal::{ - Device, SAMPLE_RATE_48K, SupportedStreamConfig, + Device, SupportedStreamConfig, traits::{DeviceTrait, HostTrait}, }; use crossterm::event::{self, Event, KeyCode, KeyEvent, KeyEventKind};