fix: web audio capture buffer size + relay warning

- Use power-of-2 buffer (1024) for ScriptProcessorNode
- Accumulate samples and send exact 960-sample frames
- Remove unused watch import from relay

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Siavash Sameni
2026-03-27 18:27:08 +04:00
parent 3f128936c4
commit a7afe4ff21
2 changed files with 32 additions and 19 deletions

View File

@@ -9,7 +9,7 @@ use std::sync::atomic::{AtomicU64, Ordering};
use std::sync::Arc;
use std::time::Duration;
use tokio::sync::{Mutex, watch};
use tokio::sync::Mutex;
use tracing::{error, info, warn};
use wzp_proto::MediaTransport;