Revert "Fixed sweep bug in square channel 1 (Fixes Little Red Hood jump sound)"

This reverts commit 820a5bce2dcaf719b624b87d5eb8413d69ed4ecb.
This commit is contained in:
Souryo 2016-01-09 13:18:12 -05:00
parent 98b6d1f65e
commit b32047ac8b

View File

@ -53,10 +53,8 @@ private:
if(_sweepNegate) {
_sweepTargetPeriod = _period - shiftResult;
if(_isChannel1) {
//"As a result, a negative sweep on pulse channel 1 will subtract the shifted period value minus 1"
//Turns out this line is a bit confusing - channel 1 is meant to do "_period - (shiftResult + 1)", so we need to subtract 1 in this case
//This fixes sound in at least 1 game (Little Red Hood)
_sweepTargetPeriod--;
// As a result, a negative sweep on pulse channel 1 will subtract the shifted period value minus 1
_sweepTargetPeriod++;
}
} else {
_sweepTargetPeriod = _period + shiftResult;