APU: Set DMC channel sample addr/length to $C000/1 byte at power on (based on hardware tests)

This commit is contained in:
Sour 2019-01-26 11:38:22 -05:00
parent c4dbe9929c
commit c29c8a34ae

View file

@ -13,8 +13,13 @@ void DeltaModulationChannel::Reset(bool softReset)
{
BaseApuChannel::Reset(softReset);
_sampleAddr = 0;
_sampleLength = 0;
if(!softReset) {
//At power on, the sample address is set to $C000 and the sample length is set to 1
//Resetting does not reset their value
_sampleAddr = 0xC000;
_sampleLength = 1;
}
_outputLevel = 0;
_irqEnabled = false;
_loopFlag = false;