Skip to content

Commit

Permalink
Fix scratchy audio in SMB3 and others
Browse files Browse the repository at this point in the history
  • Loading branch information
carmiker committed May 10, 2020
1 parent 70c53f0 commit cf8f2d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/core/NstApu.cpp
Expand Up @@ -1870,15 +1870,16 @@ namespace Nes
amp = (sum * outputVolume + rate/2) / rate * 3;
}
}
else if (amp < Channel::OUTPUT_DECAY)
// Disabling these blocks fixes scratchy audio in many games
/*else if (amp < Channel::OUTPUT_DECAY)
{
return 0;
}
else
{
amp -= Channel::OUTPUT_DECAY;
step &= STEP_CHECK;
}
}*/

return amp;
}
Expand Down

0 comments on commit cf8f2d6

Please sign in to comment.