Skip to content

Commit

Permalink
Change stream_format to return the input format.
Browse files Browse the repository at this point in the history
This matches what set_stream_format does.
  • Loading branch information
plietar committed Oct 27, 2018
1 parent efd5e5b commit b1ae52c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio_unit/render_callback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,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 = try!(self.get_property(id, Scope::Output, Element::Output));
let asbd = try!(self.get_property(id, Scope::Input, Element::Output));
let stream_format = super::StreamFormat::from_asbd(asbd)?;

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

0 comments on commit b1ae52c

Please sign in to comment.