Set Max Clone delay to 2.0s

This commit is contained in:
Bruno Herbelin
2022-04-10 23:32:44 +02:00
parent d314f1bae2
commit f039755bde
3 changed files with 3 additions and 3 deletions

View File

@@ -187,7 +187,7 @@ void CloneSource::update(float dt)
void CloneSource::setDelay(double second) void CloneSource::setDelay(double second)
{ {
delay_ = CLAMP(second, 0.0, 1.0); delay_ = CLAMP(second, 0.0, 2.0);
} }
void CloneSource::play (bool on) void CloneSource::play (bool on)

View File

@@ -3,7 +3,7 @@
#include <array> #include <array>
#define DELAY_ARRAY_SIZE 70 #define DELAY_ARRAY_SIZE 130
#include "Source.h" #include "Source.h"

View File

@@ -775,7 +775,7 @@ void ImGuiVisitor::visit (CloneSource& s)
ImGui::SetNextItemWidth(IMGUI_RIGHT_ALIGN); ImGui::SetNextItemWidth(IMGUI_RIGHT_ALIGN);
float d = s.delay(); 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); s.setDelay(d);
} }