Skip to content

Commit

Permalink
time_scale: decrease range
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetophon committed Apr 30, 2024
1 parent ba972e3 commit 2b76071
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,14 +291,12 @@ impl Plugin for Lamb {
if self.params.editor_state.is_open() {
if self.should_update_time_scale.load(Ordering::Relaxed) {
let time_scale = match self.params.time_scale.value() {
TimeScale::HalfSec => 0.5,
TimeScale::OneSec => 1.0,
TimeScale::TwoSec => 2.0,
TimeScale::FourSec => 4.0,
TimeScale::EightSec => 8.0,
TimeScale::SixteenSec => 16.0,
TimeScale::ThirtytwoSec => 32.0,
TimeScale::SixtyfourSec => 64.0,
};
self.level_buffer_l.lock().unwrap().set_duration(time_scale);
self.level_buffer_r.lock().unwrap().set_duration(time_scale);
Expand Down

0 comments on commit 2b76071

Please sign in to comment.