MCPcopy Create free account
hub / github.com/DISTRHO/DPF / osc_control_handler

Function osc_control_handler

distrho/src/DistrhoUIDSSI.cpp:302–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300#endif
301
302int 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
326int osc_program_handler(const char*, const char*, lo_arg** argv, int, lo_message, void*)

Callers

nothing calls this directly

Calls 3

d_debugFunction · 0.85
initUiIfNeededFunction · 0.85
dssiui_controlMethod · 0.80

Tested by

no test coverage detected