diff --git a/src/coreaudio/mod.rs b/src/coreaudio/mod.rs index abbfa8c..131737d 100644 --- a/src/coreaudio/mod.rs +++ b/src/coreaudio/mod.rs @@ -93,7 +93,7 @@ fn new_voice() -> Result { let (samples_sender, samples_receiver) = channel(); let audio_unit_result = AudioUnit::new(Type::Output, SubType::HalOutput) - .render_callback(box move |channels, num_frames| { + .render_callback(Box::new(move |channels, num_frames| { if let Err(_) = ready_sender.send((channels.len(), num_frames)) { return Err("Callback failed to send 'ready' message.".to_string()); } @@ -114,7 +114,7 @@ fn new_voice() -> Result { } Ok(()) - }) + })) .start(); match audio_unit_result { @@ -130,4 +130,3 @@ fn new_voice() -> Result { } } - diff --git a/src/lib.rs b/src/lib.rs index d0877d6..909044d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -47,7 +47,6 @@ a conversion on your data. If you have the possibility, you should try to match the format of the voice. */ -#![feature(box_syntax)] pub use samples_formats::{SampleFormat, Sample};