mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-25 03:32:01 +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:
parent
63e0802f4e
commit
faeecf7665
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user