Skip to content

Commit b1ae52c

Browse files
committed
Change stream_format to return the input format.
This matches what set_stream_format does.
1 parent efd5e5b commit b1ae52c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/audio_unit/render_callback.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ impl AudioUnit {
398398
// First, we'll retrieve the stream format so that we can ensure that the given callback
399399
// format matches the audio unit's format.
400400
let id = sys::kAudioUnitProperty_StreamFormat;
401-
let asbd = try!(self.get_property(id, Scope::Output, Element::Output));
401+
let asbd = try!(self.get_property(id, Scope::Input, Element::Output));
402402
let stream_format = super::StreamFormat::from_asbd(asbd)?;
403403

404404
// If the stream format does not match, return an error indicating this.

0 commit comments

Comments
 (0)