diff --git a/src/backend/mod.rs b/src/backend/mod.rs index c01f2983..faf76cda 100644 --- a/src/backend/mod.rs +++ b/src/backend/mod.rs @@ -3895,7 +3895,9 @@ impl<'ctx> CoreStreamData<'ctx> { &layout, mem::size_of::(), ); - if r != NO_ERR { + if r == NO_ERR { + self.output_dev_desc.mChannelsPerFrame = 2; + } else { cubeb_log!( "AudioUnitSetProperty/output/kAudioUnitProperty_AudioChannelLayout rv={}", r