1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 23:52:26 +00:00

Ensured final byte plays out.

This commit is contained in:
Thomas Harte 2017-06-08 19:51:49 -04:00
parent d8b76e31c3
commit ee4c8b5ad2

View File

@ -52,7 +52,7 @@ Tape::Pulse ZX80O::virtual_get_next_pulse() {
Tape::Pulse pulse;
// Start with 1 second of silence.
if(!is_past_silence_ || is_at_end()) {
if(!is_past_silence_ || (is_at_end() && !wave_pointer_)) {
pulse.type = Pulse::Type::Low;
pulse.length.length = 5;
pulse.length.clock_rate = 1;