Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Issue #369 to correctly recognise ChannelsSwapped config setting #381

Merged
merged 3 commits into from
Jan 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions src/minidexed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -948,13 +948,7 @@ void CMiniDexed::ProcessSound (void)

assert (CConfig::ToneGenerators == 8);

// swap stereo channels if needed
uint8_t indexL=0, indexR=1;
if (m_bChannelsSwapped)
{
indexL=1;
indexR=0;
}

// BEGIN TG mixing
float32_t tmp_float[nFrames*2];
Expand Down Expand Up @@ -1003,6 +997,13 @@ void CMiniDexed::ProcessSound (void)
}
// END adding reverb

// swap stereo channels if needed prior to writing back out
if (m_bChannelsSwapped)
{
indexL=1;
indexR=0;
}

// Convert dual float array (left, right) to single int16 array (left/right)
for(uint16_t i=0; i<nFrames;i++)
{
Expand Down