Skip to content

Commit 6013d98

Browse files
committed
Update output_dev_desc when deciding to skip the mixer
1 parent c74e829 commit 6013d98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -3895,7 +3895,9 @@ impl<'ctx> CoreStreamData<'ctx> {
38953895
&layout,
38963896
mem::size_of::<AudioChannelLayout>(),
38973897
);
3898-
if r != NO_ERR {
3898+
if r == NO_ERR {
3899+
self.output_dev_desc.mChannelsPerFrame = 2;
3900+
} else {
38993901
cubeb_log!(
39003902
"AudioUnitSetProperty/output/kAudioUnitProperty_AudioChannelLayout rv={}",
39013903
r

0 commit comments

Comments
 (0)