1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-25 18:30:21 +00:00

Made sure that there's nothing but silence at the end of the tape, even if the .O file is too long.

This commit is contained in:
Thomas Harte 2017-06-06 18:16:47 -04:00
parent 63e0802f4e
commit faeecf7665

View File

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