From 6802318784578c00e629c03bcaaa2012fd8dd174 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 23 Jan 2020 20:13:16 -0500 Subject: [PATCH] Removes audio_queue_.flush() calls; I don't think I really need to block. At least, not usually. --- Machines/Atari/2600/Cartridges/Cartridge.hpp | 1 - Machines/ColecoVision/ColecoVision.cpp | 1 - Machines/MSX/MSX.cpp | 1 - Machines/MasterSystem/MasterSystem.cpp | 1 - 4 files changed, 4 deletions(-) diff --git a/Machines/Atari/2600/Cartridges/Cartridge.hpp b/Machines/Atari/2600/Cartridges/Cartridge.hpp index b8ef5242f..29d07d2ab 100644 --- a/Machines/Atari/2600/Cartridges/Cartridge.hpp +++ b/Machines/Atari/2600/Cartridges/Cartridge.hpp @@ -201,7 +201,6 @@ template class Cartridge: update_audio(); update_video(); audio_queue_.perform(); - audio_queue_.flush(); } protected: diff --git a/Machines/ColecoVision/ColecoVision.cpp b/Machines/ColecoVision/ColecoVision.cpp index 3fa844b3b..631dc74f3 100644 --- a/Machines/ColecoVision/ColecoVision.cpp +++ b/Machines/ColecoVision/ColecoVision.cpp @@ -360,7 +360,6 @@ 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 aeffcf797..9cc894620 100644 --- a/Machines/MSX/MSX.cpp +++ b/Machines/MSX/MSX.cpp @@ -618,7 +618,6 @@ 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 56dcb5b5a..11a9a13c0 100644 --- a/Machines/MasterSystem/MasterSystem.cpp +++ b/Machines/MasterSystem/MasterSystem.cpp @@ -342,7 +342,6 @@ class ConcreteMachine: vdp_.flush(); update_audio(); audio_queue_.perform(); - audio_queue_.flush(); } const std::vector> &get_joysticks() override {