Skip to content

Commit 12ab303

Browse files
authored
Merge pull request #880 from shinoryo1216/mslr
Move forceMono processing before volume control
2 parents b2906f2 + 323b46a commit 12ab303

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Audio.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2366,13 +2366,13 @@ void Audio::playChunk() {
23662366
IIR_filterChain2(*sample);
23672367
}
23682368
//------------------------------------------------------------------
2369-
Gain(*sample);
2370-
23712369
if(m_f_forceMono){
23722370
int32_t xy = ((*sample)[RIGHTCHANNEL] + (*sample)[LEFTCHANNEL]) / 2;
23732371
(*sample)[RIGHTCHANNEL] = (int16_t)xy;
23742372
(*sample)[LEFTCHANNEL] = (int16_t)xy;
23752373
}
2374+
2375+
Gain(*sample);
23762376

23772377
if(m_f_internalDAC) {
23782378
s2 = *sample;

0 commit comments

Comments
 (0)