diff --git a/crates/wzp-client/src/call.rs b/crates/wzp-client/src/call.rs index c6ff3e5..3bd219e 100644 --- a/crates/wzp-client/src/call.rs +++ b/crates/wzp-client/src/call.rs @@ -209,8 +209,6 @@ pub struct CallEncoder { timestamp_ms: u32, /// Silence detector for suppression. silence_detector: SilenceDetector, - /// Comfort noise generator for CN packets. - comfort_noise: ComfortNoise, /// Whether silence suppression is enabled. suppression_enabled: bool, /// Total frames suppressed (telemetry). @@ -243,7 +241,6 @@ impl CallEncoder { config.silence_threshold_rms, config.silence_hangover_frames, ), - comfort_noise: ComfortNoise::new(config.comfort_noise_level), suppression_enabled: config.suppression_enabled, frames_suppressed: 0, cn_counter: 0, diff --git a/crates/wzp-client/src/cli.rs b/crates/wzp-client/src/cli.rs index f838d0b..85d5d26 100644 --- a/crates/wzp-client/src/cli.rs +++ b/crates/wzp-client/src/cli.rs @@ -46,7 +46,7 @@ struct CliArgs { mnemonic: Option, room: Option, token: Option, - metrics_file: Option, + _metrics_file: Option, } impl CliArgs { @@ -220,7 +220,7 @@ fn parse_args() -> CliArgs { mnemonic, room, token, - metrics_file, + _metrics_file: metrics_file, } } diff --git a/crates/wzp-client/src/featherchat.rs b/crates/wzp-client/src/featherchat.rs index 180b108..46bdbaa 100644 --- a/crates/wzp-client/src/featherchat.rs +++ b/crates/wzp-client/src/featherchat.rs @@ -11,10 +11,7 @@ //! 5. Connects QUIC to relay for media use serde::{Deserialize, Serialize}; -use tracing::{error, info}; - use wzp_proto::packet::SignalMessage; -use wzp_proto::QualityProfile; /// featherChat CallSignal types (mirrors warzone-protocol::message::CallSignalType). #[derive(Clone, Debug, Serialize, Deserialize)] diff --git a/crates/wzp-relay/src/room.rs b/crates/wzp-relay/src/room.rs index 02bec2f..d80997b 100644 --- a/crates/wzp-relay/src/room.rs +++ b/crates/wzp-relay/src/room.rs @@ -30,7 +30,7 @@ fn next_id() -> ParticipantId { /// A participant in a room. struct Participant { id: ParticipantId, - addr: std::net::SocketAddr, + _addr: std::net::SocketAddr, transport: Arc, } @@ -49,7 +49,7 @@ impl Room { fn add(&mut self, addr: std::net::SocketAddr, transport: Arc) -> ParticipantId { let id = next_id(); info!(room_size = self.participants.len() + 1, participant = id, %addr, "joined room"); - self.participants.push(Participant { id, addr, transport }); + self.participants.push(Participant { id, _addr: addr, transport }); id } diff --git a/crates/wzp-web/src/main.rs b/crates/wzp-web/src/main.rs index 84eb633..c4cc6a0 100644 --- a/crates/wzp-web/src/main.rs +++ b/crates/wzp-web/src/main.rs @@ -7,7 +7,6 @@ //! //! Rooms: clients connect to /ws/ and are paired by room. -use std::collections::HashMap; use std::net::SocketAddr; use std::sync::Arc; @@ -33,19 +32,10 @@ const FRAME_SAMPLES: usize = 960; #[derive(Clone)] struct AppState { relay_addr: SocketAddr, - rooms: Arc>>, auth_url: Option, metrics: WebMetrics, } -/// A waiting client in a room. -struct RoomSlot { - /// Sender half — send audio TO this waiting client's browser. - tx: tokio::sync::mpsc::Sender>, - /// Receiver half — receive audio FROM this waiting client's browser. - rx: Arc>>>, -} - #[tokio::main] async fn main() -> anyhow::Result<()> { tracing_subscriber::fmt().init(); @@ -97,7 +87,6 @@ async fn main() -> anyhow::Result<()> { let web_metrics = WebMetrics::new(); let state = AppState { relay_addr, - rooms: Arc::new(Mutex::new(HashMap::new())), auth_url, metrics: web_metrics, };