Skip to content

Commit 1a19d94

Browse files
authored
disable logging on rodio stream drop (#1557)
1 parent d073cb1 commit 1a19d94

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

playback/src/audio_backend/rodio.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ fn create_sink(
193193
AudioFormat::S16 => cpal::SampleFormat::I16,
194194
};
195195

196-
let stream = match rodio::OutputStreamBuilder::default()
196+
let mut stream = match rodio::OutputStreamBuilder::default()
197197
.with_device(cpal_device.clone())
198198
.with_config(&config.config())
199199
.with_sample_format(sample_format)
@@ -206,6 +206,9 @@ fn create_sink(
206206
}
207207
};
208208

209+
// disable logging on stream drop
210+
stream.log_on_drop(false);
211+
209212
let sink = rodio::Sink::connect_new(stream.mixer());
210213
Ok((sink, stream))
211214
}

0 commit comments

Comments
 (0)