| 300 | #endif |
| 301 | |
| 302 | int osc_control_handler(const char*, const char*, lo_arg** argv, int, lo_message, void*) |
| 303 | { |
| 304 | const int32_t rindex = argv[0]->i; |
| 305 | const float value = argv[1]->f; |
| 306 | d_debug("osc_control_handler(%i, %f)", rindex, value); |
| 307 | |
| 308 | int32_t index = rindex - DISTRHO_PLUGIN_NUM_INPUTS - DISTRHO_PLUGIN_NUM_OUTPUTS; |
| 309 | |
| 310 | // latency |
| 311 | #if DISTRHO_PLUGIN_WANT_LATENCY |
| 312 | index -= 1; |
| 313 | #endif |
| 314 | |
| 315 | if (index < 0) |
| 316 | return 0; |
| 317 | |
| 318 | initUiIfNeeded(); |
| 319 | |
| 320 | globalUI->dssiui_control(index, value); |
| 321 | |
| 322 | return 0; |
| 323 | } |
| 324 | |
| 325 | #if DISTRHO_PLUGIN_WANT_PROGRAMS |
| 326 | int osc_program_handler(const char*, const char*, lo_arg** argv, int, lo_message, void*) |
nothing calls this directly
no test coverage detected