Noise: Initialized period to the first entry in the LUT. FDS bios doesn't initialize the noise channel's period, making it run every single clock until a game is launched.

This commit is contained in:
Souryo 2016-02-14 16:58:43 -05:00
parent 9aab7fd741
commit a8e2d72a73

View File

@ -44,6 +44,7 @@ public:
{
ApuEnvelope::Reset(softReset);
_period = (GetNesModel() == NesModel::NTSC ? _noisePeriodLookupTableNtsc : _noisePeriodLookupTablePal)[0] - 1;
_shiftRegister = 1;
_modeFlag = false;
}