From 8c27322d85acc0fea9feaa90394b0fd2580f8ced Mon Sep 17 00:00:00 2001 From: Sour Date: Wed, 26 Dec 2018 13:04:40 -0500 Subject: [PATCH] NSF: Fixed init problem with VRC6 (NSF-only) that could cause distorted audio --- Core/Vrc6Audio.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Core/Vrc6Audio.h b/Core/Vrc6Audio.h index 7c0aa9db..fa9064c5 100644 --- a/Core/Vrc6Audio.h +++ b/Core/Vrc6Audio.h @@ -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) : BaseExpansionAudio(console) { + Reset(); } void Reset()