Skip to content

Commit

Permalink
Update output_dev_desc when deciding to skip the mixer
Browse files Browse the repository at this point in the history
  • Loading branch information
Pehrsons committed Aug 8, 2024
1 parent c74e829 commit 6013d98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/backend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3895,7 +3895,9 @@ impl<'ctx> CoreStreamData<'ctx> {
&layout,
mem::size_of::<AudioChannelLayout>(),
);
if r != NO_ERR {
if r == NO_ERR {
self.output_dev_desc.mChannelsPerFrame = 2;
} else {
cubeb_log!(
"AudioUnitSetProperty/output/kAudioUnitProperty_AudioChannelLayout rv={}",
r
Expand Down

0 comments on commit 6013d98

Please sign in to comment.