We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d073cb1 commit 1a19d94Copy full SHA for 1a19d94
playback/src/audio_backend/rodio.rs
@@ -193,7 +193,7 @@ fn create_sink(
193
AudioFormat::S16 => cpal::SampleFormat::I16,
194
};
195
196
- let stream = match rodio::OutputStreamBuilder::default()
+ let mut stream = match rodio::OutputStreamBuilder::default()
197
.with_device(cpal_device.clone())
198
.with_config(&config.config())
199
.with_sample_format(sample_format)
@@ -206,6 +206,9 @@ fn create_sink(
206
}
207
208
209
+ // disable logging on stream drop
210
+ stream.log_on_drop(false);
211
+
212
let sink = rodio::Sink::connect_new(stream.mixer());
213
Ok((sink, stream))
214
0 commit comments