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