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.
1 parent 00b2ff8 commit 96cf6dbCopy full SHA for 96cf6db
examples/sine.rs
@@ -3,7 +3,7 @@
3
extern crate coreaudio_rs as coreaudio;
4
extern crate num;
5
6
-use coreaudio::audio_unit::{AudioUnit, Type, SubType};
+use coreaudio::audio_unit::{AudioUnit, IOType};
7
use num::Float;
8
use std::f64::consts::PI;
9
@@ -28,7 +28,7 @@ fn main() {
28
.map(|phase| (phase * PI * 2.0).sin() as f32 * 0.15);
29
30
// Construct an Output audio unit.
31
- let mut audio_unit = AudioUnit::new(Type::Output, SubType::HalOutput).unwrap();
+ let mut audio_unit = AudioUnit::new(IOType::HalOutput).unwrap();
32
33
// Pass the audio unit a callback for filling the buffer.
34
audio_unit.set_render_callback(Some(Box::new(move |buffer, num_frames| {
0 commit comments