1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-22 08:16:42 +00:00

Improves qualifiers.

This commit is contained in:
Thomas Harte
2019-07-15 22:40:45 -04:00
parent 67055d8b56
commit cb16790330
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -340,7 +340,7 @@ void Drive::write_bit(bool value) {
void Drive::end_writing() {
// If the user modifies a track, it's scaled up to a "high" resolution and modifications
// are plotted on top of that.
static const size_t high_resolution_track_rate = 500000;
const size_t high_resolution_track_rate = 500000;
if(!is_reading_) {
is_reading_ = true;
@@ -349,7 +349,7 @@ void Drive::end_writing() {
// Avoid creating a new patched track if this one is already patched
patched_track_ = std::dynamic_pointer_cast<PCMTrack>(track_);
if(!patched_track_ || !patched_track_->is_resampled_clone()) {
Track *tr = track_.get();
Track *const tr = track_.get();
patched_track_.reset(PCMTrack::resampled_clone(tr, high_resolution_track_rate));
}
}