Skip to content

Commit

Permalink
Properly initialize Namco163Audio
Browse files Browse the repository at this point in the history
Fixes first note with Zxx playing with wrong waveform.
  • Loading branch information
nyanpasu64 committed Sep 15, 2024
1 parent 2c99773 commit d838080
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Source/APU/mesen/Namco163Audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,19 @@ class Namco163Audio
_updateCounter += clocks;
}

Namco163Audio()
: _channelOutput{}
, _internalRam{}
{
_ramPosition = 0;
_autoIncrement = false;
_updateCounter = 0;
_currentChannel = 7;
_lastOutput = 0;
_disableSound = false;
_mixLinear = false;
}

void Reset() {
*this = {};
}
Expand Down

0 comments on commit d838080

Please sign in to comment.