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 df9f00c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 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
6 changes: 0 additions & 6 deletions src/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ enum ZoomMode {

#[derive(Enum, Debug, PartialEq)]
enum TimeScale {
#[id = "0_5s"]
#[name = "0.5 seconds"]
HalfSec,
#[id = "1s"]
#[name = "1 second"]
OneSec,
Expand All @@ -90,9 +87,6 @@ enum TimeScale {
#[id = "32s"]
#[name = "32 seconds"]
ThirtytwoSec,
#[id = "64"]
#[name = "64 seconds"]
SixtyfourSec,
}

#[derive(Enum, Debug, PartialEq)]
Expand Down

0 comments on commit df9f00c

Please sign in to comment.