APU: Set DMC channel sample addr/length to $C000/1 byte at power on (based on hardware tests)
This commit is contained in:
parent
c4dbe9929c
commit
c29c8a34ae
1 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue