Skip to content

Commit

Permalink
audiounit: fix swap_rear_surround check
Browse files Browse the repository at this point in the history
  • Loading branch information
tguillem authored and robUx4 committed Jan 6, 2023
1 parent 9abf0bb commit a4b715b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/audio_output/coreaudio_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ MapInputLayout(audio_output_t *p_aout, const audio_sample_format_t *fmt,
inlayout->mChannelLayoutTag = kAudioChannelLayoutTag_UseChannelDescriptions;
inlayout->mNumberChannelDescriptions = aout_FormatNbChannels(fmt);

bool swap_rear_surround = fmt->i_physical_channels & AOUT_CHANS_7_0;
bool swap_rear_surround = (fmt->i_physical_channels & AOUT_CHANS_7_0) == AOUT_CHANS_7_0;
if (swap_rear_surround)
msg_Dbg(p_aout, "swapping Surround and RearSurround channels "
"for 7.1 Rear Surround");
Expand Down

0 comments on commit a4b715b

Please sign in to comment.