Browse Source

Show the SW-latency

This is zero for PulseAudio.
master
Andreas Linz 5 years ago
parent
commit
13a548ee8c
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      examples/sine.rs

+ 4
- 0
examples/sine.rs View File

@ -72,6 +72,10 @@ fn main() {
let sr = out.sample_rate();
println!("Sample rate: {}", sr);
match out.latency() {
Ok(latency) => println!("SW latency: {}", latency),
Err(err) => println!("err: {}", err),
}
let layout = out.layout();
println!("Output channel layout: {}", layout);
// start audio output (now the `write_callback` will be called periodically)

Loading…
Cancel
Save