We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ca9e3bf + 29ab9a1 commit e2f1370Copy full SHA for e2f1370
src/engine.rs
@@ -237,7 +237,7 @@ fn background(rx: Receiver<Command>) {
237
let now = time::precise_time_ns();
238
if next_loop_timer > now + 1000000 /* 1ms */ {
239
let sleep = next_loop_timer - now;
240
- thread::park_timeout_ms((sleep / 1000000) as u32);
+ thread::park_timeout(Duration::from_millis(sleep / 1000000));
241
}
242
next_loop_timer += FIXED_STEP_NS;
243
@@ -329,7 +329,7 @@ fn background(rx: Receiver<Command>) {
329
330
331
/// Main source of samples for a voice.
332
-struct QueueIterator {
+pub struct QueueIterator {
333
/// The current iterator that produces samples.
334
current: Box<Iterator<Item = f32> + Send>,
335
0 commit comments