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

Function get_parameter_string_for_value

distrho/src/DistrhoPluginVST3.cpp:3799–3809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3797 }
3798
3799 static v3_result V3_API get_parameter_string_for_value(void* self, v3_param_id index, double normalized, v3_str_128 output)
3800 {
3801 // NOTE very noisy, called many times
3802 // d_debug("dpf_edit_controller::get_parameter_string_for_value => %p %u %f %p", self, index, normalized, output);
3803 dpf_edit_controller* const controller = *static_cast<dpf_edit_controller**>(self);
3804
3805 PluginVst3* const vst3 = controller->vst3;
3806 DISTRHO_SAFE_ASSERT_RETURN(vst3 != nullptr, V3_NOT_INITIALIZED);
3807
3808 return vst3->getParameterStringForValue(index, normalized, output);
3809 }
3810
3811 static v3_result V3_API get_parameter_value_for_string(void* self, v3_param_id index, int16_t* input, double* output)
3812 {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected