mirror of
https://github.com/libretro/Mesen.git
synced 2025-02-17 07:08:45 +00:00
Revert "Fixed sweep bug in square channel 1 (Fixes Little Red Hood jump sound)"
This reverts commit 820a5bce2dcaf719b624b87d5eb8413d69ed4ecb.
This commit is contained in:
parent
98b6d1f65e
commit
b32047ac8b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user