X-Git-Url: https://code.octet-stream.net/m17rt/blobdiff_plain/b3cb86656d6c820a70ceb5ea1a6d602999eb3c85..b0e7a62e7d8184888184ca9d11464611ed12a97c:/demod/src/main.rs diff --git a/demod/src/main.rs b/demod/src/main.rs index c1a7eb9..78ff2b0 100755 --- a/demod/src/main.rs +++ b/demod/src/main.rs @@ -57,7 +57,12 @@ pub fn run_my_decode() { let stream = def .build_output_stream( &config.into(), - move |data: &mut [i16], _: &cpal::OutputCallbackInfo| { + move |data: &mut [i16], info: &cpal::OutputCallbackInfo| { + debug!( + "callback {:?} playback {:?}", + info.timestamp().callback, + info.timestamp().playback + ); println!( "iteration {counter} asked for {} samples at time {}", data.len(), @@ -72,7 +77,7 @@ pub fn run_my_decode() { data[0..qty].copy_from_slice(&samples[index..(index + qty)]); index += qty; }, - move |e| { + move |_e| { println!("error occurred"); }, None,