diff --git a/examples/sine.rs b/examples/sine.rs index c81448b3c..b8d23185b 100644 --- a/examples/sine.rs +++ b/examples/sine.rs @@ -30,7 +30,7 @@ fn main() { // Construct an Output audio unit. let mut audio_unit = AudioUnit::new(Type::Output, SubType::HalOutput).unwrap(); audio_unit.render_callback(Some(Box::new(move |buffer, num_frames| { - for frame in (0..num_frames) { + for frame in 0..num_frames { let sample = samples.next().unwrap(); for channel in buffer.iter_mut() { channel[frame] = sample; diff --git a/src/lib.rs b/src/lib.rs index 5e17aeef5..d5da3d762 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,10 +8,10 @@ //! Currently, work has only been started on the [audio_unit](./audio_unit/index.html) module, but //! eventually we'd like to cover at least the majority of the C API. +extern crate coreaudio_sys; +pub use coreaudio_sys as bindings; -pub extern crate coreaudio_sys as bindings; extern crate libc; pub mod audio_unit; pub mod error; -