Skip to content

Commit e2f1370

Browse files
authored
Merge pull request #75 from petrochenkov/master
Fix a private-in-public error
2 parents ca9e3bf + 29ab9a1 commit e2f1370

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/engine.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ fn background(rx: Receiver<Command>) {
237237
let now = time::precise_time_ns();
238238
if next_loop_timer > now + 1000000 /* 1ms */ {
239239
let sleep = next_loop_timer - now;
240-
thread::park_timeout_ms((sleep / 1000000) as u32);
240+
thread::park_timeout(Duration::from_millis(sleep / 1000000));
241241
}
242242
next_loop_timer += FIXED_STEP_NS;
243243
}
@@ -329,7 +329,7 @@ fn background(rx: Receiver<Command>) {
329329
}
330330

331331
/// Main source of samples for a voice.
332-
struct QueueIterator {
332+
pub struct QueueIterator {
333333
/// The current iterator that produces samples.
334334
current: Box<Iterator<Item = f32> + Send>,
335335

0 commit comments

Comments
 (0)