Attempt fully generic formulation of divide/flush.

This commit is contained in:
Thomas Harte committed 2026-03-07 16:22:16 -05:00
1 parent 186b911e8e
commit 2d1c865366
13 files changed
+78 -51

No files matched your search

+4 -1
View File
@@ -459,7 +459,10 @@ private:
}
inline void update_audio() {
speaker_.run_for(audio_queue_, time_since_sn76489_update_.divide_cycles(Cycles(audio_divider)));
speaker_.run_for(
audio_queue_,
time_since_sn76489_update_.divide(HalfCycles(audio_divider << 1)).template reduce<Cycles>()
);
}
void set_mixer_levels(uint8_t mode) {