1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-03-11 04:42:20 +00:00

Switch to int; attempt to do a better job of initial audio filling.

This commit is contained in:
Thomas Harte
2022-07-09 13:33:46 -04:00
parent 51ed3f2ed0
commit 6dabdaca45
20 changed files with 72 additions and 54 deletions

View File

@@ -210,11 +210,11 @@ class ConcreteMachine:
z80_.run_for(cycles);
}
void flush_output(Output output) final {
if(int(output) & int(Output::Video)) {
void flush_output(int outputs) final {
if(outputs & Output::Video) {
vdp_.flush();
}
if(int(output) & int(Output::Audio)) {
if(outputs & Output::Audio) {
update_audio();
audio_queue_.perform();
}