Skip to content

Commit e3da605

Browse files
committed
log audio stream config
1 parent 0bf0d9b commit e3da605

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/audio/midi_player.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,13 @@ fn new_output_stream(
202202
let stream_config: cpal::StreamConfig = config.into();
203203
let sample_rate = stream_config.sample_rate.0;
204204

205+
log::info!(
206+
"Audio output stream config: {:?} ({} channels, {} Hz)",
207+
stream_config,
208+
stream_config.channels,
209+
stream_config.sample_rate.0
210+
);
211+
205212
let mut synthesizer_guard = synthesizer.lock().unwrap();
206213
if sample_rate != DEFAULT_SAMPLE_RATE {
207214
// audio output is not using the default sample rate - recreate synthesizer with proper sample rate

0 commit comments

Comments
 (0)