Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/sine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;