mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-23 20:29:42 +00:00
Accept a pulse that begins exactly on seek_time as being found while seeking.
This commit is contained in:
parent
a53011f778
commit
84d0e9b4cd
@ -22,7 +22,7 @@ TapePlayer::TapePlayer(unsigned int input_clock_rate) :
|
|||||||
void Storage::Tape::Tape::seek(Time &seek_time) {
|
void Storage::Tape::Tape::seek(Time &seek_time) {
|
||||||
current_time_.set_zero();
|
current_time_.set_zero();
|
||||||
next_time_.set_zero();
|
next_time_.set_zero();
|
||||||
while(next_time_ < seek_time) get_next_pulse();
|
while(next_time_ <= seek_time) get_next_pulse();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Storage::Tape::Tape::reset() {
|
void Storage::Tape::Tape::reset() {
|
||||||
|
Loading…
Reference in New Issue
Block a user