1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-24 05:18:36 +00:00

Switch to spinning on SID thread synchronisation.

This commit is contained in:
Thomas Harte
2025-11-13 17:59:24 -05:00
parent d01e1f3bb1
commit c9c1bde6e2
22 changed files with 38 additions and 22 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ public:
}
~MOS6560() {
audio_queue_.flush();
audio_queue_.lock_flush();
}
void set_clock_rate(const double clock_rate) {
+1 -1
View File
@@ -142,7 +142,7 @@ uint8_t SID::read(const Numeric::SizedInt<5> address) {
case 0x1b:
case 0x1c:
// Ensure all channels are entirely up to date.
audio_queue_.flush();
audio_queue_.spin_flush();
return (address == 0x1c) ? voices_[2].adsr.envelope : uint8_t(voices_[2].output(voices_[1]) >> 4);
}
}