NSF: Fixed init problem with VRC6 (NSF-only) that could cause distorted audio

This commit is contained in:
Sour 2018-12-26 13:04:40 -05:00
parent f550b83025
commit 8c27322d85

View file

@ -9,8 +9,8 @@ private:
Vrc6Pulse _pulse1;
Vrc6Pulse _pulse2;
Vrc6Saw _saw;
bool _haltAudio;
int32_t _lastOutput;
bool _haltAudio = false;
int32_t _lastOutput = 0;
protected:
void StreamState(bool saving) override
@ -38,6 +38,7 @@ protected:
public:
Vrc6Audio(shared_ptr<Console> console) : BaseExpansionAudio(console)
{
Reset();
}
void Reset()