diff --git a/Cargo.toml b/Cargo.toml index cac4e0083..e64a073fd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "coreaudio-rs" -version = "0.9.0" +version = "0.9.1" authors = ["mitchmindtree ", "yupferris "] description = "A friendly rust interface for Apple's CoreAudio API." keywords = ["core", "audio", "unit", "osx", "ios"] diff --git a/src/audio_unit/render_callback.rs b/src/audio_unit/render_callback.rs index e1fcc7395..e0c5668a7 100644 --- a/src/audio_unit/render_callback.rs +++ b/src/audio_unit/render_callback.rs @@ -471,7 +471,7 @@ impl AudioUnit { // First, we'll retrieve the stream format so that we can ensure that the given callback // format matches the audio unit's format. let id = sys::kAudioUnitProperty_StreamFormat; - let asbd = self.get_property(id, Scope::Input, Element::Output)?; + let asbd = self.get_property(id, Scope::Input, Element::Input)?; let stream_format = super::StreamFormat::from_asbd(asbd)?; // If the stream format does not match, return an error indicating this.