From bda944162034eb1020e837608c5b47bb50bb2368 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 2 Aug 2017 07:20:59 -0400 Subject: [PATCH] Made an attempt to clock the AY. --- Outputs/Speaker.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Outputs/Speaker.hpp b/Outputs/Speaker.hpp index 7d9215f50..4dee97da4 100644 --- a/Outputs/Speaker.hpp +++ b/Outputs/Speaker.hpp @@ -87,6 +87,7 @@ class Speaker { Ensures any deferred processing occurs now. */ void flush() { + if(!queued_functions_) return; std::shared_ptr>> queued_functions = queued_functions_; queued_functions_.reset(); _queue->enqueue([queued_functions] { @@ -143,7 +144,9 @@ template class Filter: public Speaker { void run_for(const Cycles cycles) { enqueue([=]() { + printf("... %d ...\n", (unsigned int)cycles.as_int()); unsigned int cycles_remaining = (unsigned int)cycles.as_int(); + printf("!!!\n", (unsigned int)cycles.as_int()); if(coefficients_are_dirty_) update_filter_coefficients(); // if input and output rates exactly match, just accumulate results and pass on