audio fixes

This commit is contained in:
Brad Stein 2025-07-01 18:21:06 -05:00
parent 7e3736a389
commit 8bf356225a

View File

@ -69,10 +69,10 @@ pub async fn ear(alsa_dev: &str, id: u32) -> anyhow::Result<AudioStream> {
.expect("appsink");
let tap = Arc::new(Mutex::new(ClipTap::new("🎧 - ear", Duration::from_secs(60))));
sink.connect("underrun", false, |_| {
tracing::warn!("⚠️ USB playback underrun host muted or not reading");
None
});
// sink.connect("underrun", false, |_| {
// tracing::warn!("⚠️ USB playback underrun host muted or not reading");
// None
// });
let (tx, rx) = tokio::sync::mpsc::channel(8192);
@ -268,10 +268,10 @@ impl Voice {
});
// underrun ≠ error just show a warning
let _id = alsa_sink.connect("underrun", false, |_| {
tracing::warn!("⚠️ USB playback underrun host muted/not reading");
None
});
// let _id = alsa_sink.connect("underrun", false, |_| {
// tracing::warn!("⚠️ USB playback underrun host muted/not reading");
// None
// });
pipeline.set_state(gst::State::Playing)?;