Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! When playing stereo, address the channels by name rather than …
Browse files Browse the repository at this point in the history
…using index 0 and 1
padenot committed May 28, 2024
1 parent 6b9c910 commit af39e78
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/backend/mod.rs
Original file line number Diff line number Diff line change
@@ -3912,12 +3912,7 @@ impl<'ctx> CoreStreamData<'ctx> {
&& self.output_stream_params.layout() == ChannelLayout::STEREO
{
let mut layout = AudioChannelLayout::default();
if self.output_stream_params.channels() == 2 {
layout.mChannelLayoutTag = kAudioChannelLayoutTag_Stereo;
} else {
layout.mChannelLayoutTag = kAudioChannelLayoutTag_Mono;
}

layout.mChannelLayoutTag = kAudioChannelLayoutTag_Stereo;
let r = audio_unit_set_property(
self.output_unit,
kAudioUnitProperty_AudioChannelLayout,

0 comments on commit af39e78

Please sign in to comment.