Add /speed OSC endpoint to control playspeed

This commit is contained in:
Ryan Kelln
2023-05-17 11:53:11 -04:00
parent e095b139ae
commit e8b05cd7c2
4 changed files with 10 additions and 3 deletions

View File

@@ -256,7 +256,7 @@ void drawMediaPlayer()
ImGui::SameLine(0, spacing);
ImGui::SetNextItemWidth(270);
// ImGui::SetNextItemWidth(width - 90.0);
if (ImGui::SliderFloat( "Speed", &speed, -10.f, 10.f, "x %.1f", 2.f))
if (ImGui::SliderFloat( "Speed", &speed, -10.f, 10.f, "x %.2f", 2.f))
testmedia.setPlaySpeed( static_cast<double>(speed) );
ImGui::SameLine(0, spacing);
if (ImGuiToolkit::ButtonIcon(19, 15)) {