Skip to content

Commit

Permalink
Run fmt on playback example
Browse files Browse the repository at this point in the history
  • Loading branch information
Herschel committed Aug 22, 2019
1 parent e6bb5bf commit a78baa8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/playback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ fn playback(filename: &str) -> Result<(), Box<dyn std::error::Error>> {
let stream_id = event_loop
.build_output_stream(&device, &out_format)
.expect("Failed to create a stream");
event_loop.play_stream(stream_id.clone()).expect("Cannot play stream");
event_loop
.play_stream(stream_id.clone())
.expect("Cannot play stream");

// Use the sample crate to convert the MP3 stream to the output stream format.
let mut signal = signal::from_iter(samples.map(|sample| [sample.0, sample.1]));
Expand Down

0 comments on commit a78baa8

Please sign in to comment.