mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Allow for live changing of video rate with osc.
This commit is contained in:
@@ -218,6 +218,13 @@ void OscInterface::applyOscCommand(MainWindow &main_window, QVariantList & comma
|
||||
//std::cout << "load /mapmap/paint/media/load " << paint_id << " " << image_uri << std::endl;
|
||||
main_window.setTextureUri(paint_id, image_uri);
|
||||
}
|
||||
else if (path == "/mapmap/paint/media/rate" && typetags == "if")
|
||||
{
|
||||
int paint_id = command.at(2).toInt();
|
||||
float rate = command.at(3).toDouble();
|
||||
//std::cout << "load /mapmap/paint/media/load " << paint_id << " " << image_uri << std::endl;
|
||||
main_window.setTextureRate(paint_id, rate);
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << "Unhandled OSC message: ";
|
||||
|
||||
Reference in New Issue
Block a user