Skip to content

Commit

Permalink
Fix wrong pointer to SCSP
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Maurin committed Jun 7, 2022
1 parent 5282a9e commit b284713
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Src/Sound/SCSP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1706,7 +1706,7 @@ void SCSP_DoMasterSamples(int nsamples)
}
}

if (DAC18B(SCSP))
if (DAC18B((&SCSP[0])))
{
smpfl = ICLIP18(smpfl);
smpfr = ICLIP18(smpfr);
Expand All @@ -1719,12 +1719,16 @@ void SCSP_DoMasterSamples(int nsamples)
*buffl++ = ICLIP16(smpfl);
*buffr++ = ICLIP16(smpfr);

if (HasSlaveSCSP) {
if (DAC18B(SCSP)) {
if (HasSlaveSCSP)
{
if (DAC18B((&SCSPs[1])))
{
smprl = ICLIP18(smprl);
smprr = ICLIP18(smprr);
} else {
smprl = ICLIP16(smprl >> 2);
}
else
{
smprl = ICLIP16(smprl >> 2);
smprr = ICLIP16(smprr >> 2);
}
}
Expand Down

0 comments on commit b284713

Please sign in to comment.