We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efd5e5b commit b1ae52cCopy full SHA for b1ae52c
src/audio_unit/render_callback.rs
@@ -398,7 +398,7 @@ impl AudioUnit {
398
// First, we'll retrieve the stream format so that we can ensure that the given callback
399
// format matches the audio unit's format.
400
let id = sys::kAudioUnitProperty_StreamFormat;
401
- let asbd = try!(self.get_property(id, Scope::Output, Element::Output));
+ let asbd = try!(self.get_property(id, Scope::Input, Element::Output));
402
let stream_format = super::StreamFormat::from_asbd(asbd)?;
403
404
// If the stream format does not match, return an error indicating this.
0 commit comments