diff --git a/CloneSource.cpp b/CloneSource.cpp index b3460bc..9c43fc4 100644 --- a/CloneSource.cpp +++ b/CloneSource.cpp @@ -187,7 +187,7 @@ void CloneSource::update(float dt) void CloneSource::setDelay(double second) { - delay_ = CLAMP(second, 0.0, 1.0); + delay_ = CLAMP(second, 0.0, 2.0); } void CloneSource::play (bool on) diff --git a/CloneSource.h b/CloneSource.h index d9e763f..0050253 100644 --- a/CloneSource.h +++ b/CloneSource.h @@ -3,7 +3,7 @@ #include -#define DELAY_ARRAY_SIZE 70 +#define DELAY_ARRAY_SIZE 130 #include "Source.h" diff --git a/ImGuiVisitor.cpp b/ImGuiVisitor.cpp index 589703a..2e91d35 100644 --- a/ImGuiVisitor.cpp +++ b/ImGuiVisitor.cpp @@ -775,7 +775,7 @@ void ImGuiVisitor::visit (CloneSource& s) ImGui::SetNextItemWidth(IMGUI_RIGHT_ALIGN); float d = s.delay(); - if (ImGui::SliderFloat("Delay", &d, 0.f, 1.f, d < 0.01f ? "None" : "%.2f s")) + if (ImGui::SliderFloat("Delay", &d, 0.f, 2.f, d < 0.01f ? "None" : "%.2f s")) s.setDelay(d); }