| 2955 | } |
| 2956 | |
| 2957 | bool addParameterDataToHostOutputEvents(v3_param_changes** const outparamsptr, |
| 2958 | const v3_param_id paramId, |
| 2959 | const double normalized, |
| 2960 | const int32_t offset = 0) |
| 2961 | { |
| 2962 | int32_t index = 0; |
| 2963 | v3_param_value_queue** const queue = v3_cpp_obj(outparamsptr)->add_param_data(outparamsptr, |
| 2964 | ¶mId, &index); |
| 2965 | DISTRHO_SAFE_ASSERT_RETURN(queue != nullptr, false); |
| 2966 | DISTRHO_SAFE_ASSERT_RETURN(v3_cpp_obj(queue)->add_point(queue, 0, normalized, &index) == V3_OK, false); |
| 2967 | |
| 2968 | /* FLStudio gets confused with this one, skip it for now |
| 2969 | if (offset != 0) |
| 2970 | v3_cpp_obj(queue)->add_point(queue, offset, normalized, &index); |
| 2971 | */ |
| 2972 | |
| 2973 | return true; |
| 2974 | |
| 2975 | // unused at the moment, buggy VST3 hosts :/ |
| 2976 | (void)offset; |
| 2977 | } |
| 2978 | |
| 2979 | #if DISTRHO_PLUGIN_HAS_UI |
| 2980 | // ---------------------------------------------------------------------------------------------------------------- |
no test coverage detected