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