Browse Source

Check latency from outside the callback

master
Andreas Linz 5 years ago
parent
commit
e0cae2df71
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tests/stream.rs

+ 1
- 1
tests/stream.rs View File

@ -36,7 +36,6 @@ fn test_outstream() {
let frames = vec![l, r];
let frames_written = out.write_stream_f32(min_frame_count, &frames).unwrap();
assert!(frames_written > 0);
assert!(out.latency().is_ok());
};
stream.register_write_callback(cb);
let ucb = |_: rsoundio::OutStream| println!("Underflow!");
@ -48,6 +47,7 @@ fn test_outstream() {
assert!(stream.pause().is_none());
thread::sleep(Duration::new(1, 0));
assert!(stream.unpause().is_none());
assert!(stream.latency().is_ok());
assert!(stream.clear_buffer().is_none());
thread::sleep(Duration::new(1, 0));
}

Loading…
Cancel
Save