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:
@@ -75,7 +75,7 @@ public:
|
||||
}
|
||||
|
||||
~MOS6560() {
|
||||
audio_queue_.flush();
|
||||
audio_queue_.lock_flush();
|
||||
}
|
||||
|
||||
void set_clock_rate(const double clock_rate) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user