From a86fb33789d5418345b8a1099c0523507f7e500e Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 22 Jan 2020 22:57:16 -0500 Subject: [PATCH] Ensures that the ColecoVision, MSX and Master System fully flush. --- Machines/ColecoVision/ColecoVision.cpp | 1 + Machines/MSX/MSX.cpp | 1 + Machines/MasterSystem/MasterSystem.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/Machines/ColecoVision/ColecoVision.cpp b/Machines/ColecoVision/ColecoVision.cpp index 631dc74f3..3fa844b3b 100644 --- a/Machines/ColecoVision/ColecoVision.cpp +++ b/Machines/ColecoVision/ColecoVision.cpp @@ -360,6 +360,7 @@ class ConcreteMachine: vdp_.flush(); update_audio(); audio_queue_.perform(); + audio_queue_.flush(); } float get_confidence() override { diff --git a/Machines/MSX/MSX.cpp b/Machines/MSX/MSX.cpp index 9cc894620..aeffcf797 100644 --- a/Machines/MSX/MSX.cpp +++ b/Machines/MSX/MSX.cpp @@ -618,6 +618,7 @@ class ConcreteMachine: vdp_.flush(); update_audio(); audio_queue_.perform(); + audio_queue_.flush(); } void set_keyboard_line(int line) { diff --git a/Machines/MasterSystem/MasterSystem.cpp b/Machines/MasterSystem/MasterSystem.cpp index 11a9a13c0..56dcb5b5a 100644 --- a/Machines/MasterSystem/MasterSystem.cpp +++ b/Machines/MasterSystem/MasterSystem.cpp @@ -342,6 +342,7 @@ class ConcreteMachine: vdp_.flush(); update_audio(); audio_queue_.perform(); + audio_queue_.flush(); } const std::vector> &get_joysticks() override {