diff --git a/distrho/src/DistrhoPluginVST3.cpp b/distrho/src/DistrhoPluginVST3.cpp index 756b58c8..74efb87f 100644 --- a/distrho/src/DistrhoPluginVST3.cpp +++ b/distrho/src/DistrhoPluginVST3.cpp @@ -2934,7 +2934,7 @@ private: } bool addParameterDataToHostOutputEvents(v3_param_changes** const outparamsptr, - v3_param_id paramId, + const v3_param_id paramId, const double normalized, const int32_t offset = 0) { diff --git a/distrho/src/travesty/audio_processor.h b/distrho/src/travesty/audio_processor.h index cc2d087a..f896c0b8 100644 --- a/distrho/src/travesty/audio_processor.h +++ b/distrho/src/travesty/audio_processor.h @@ -1,6 +1,6 @@ /* * travesty, pure C VST3-compatible interface - * Copyright (C) 2021-2022 Filipe Coelho + * Copyright (C) 2021-2023 Filipe Coelho * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this @@ -125,7 +125,7 @@ struct v3_param_changes { #endif int32_t (V3_API* get_param_count)(void* self); struct v3_param_value_queue** (V3_API* get_param_data)(void* self, int32_t idx); - struct v3_param_value_queue** (V3_API* add_param_data)(void* self, v3_param_id* id, int32_t* index); + struct v3_param_value_queue** (V3_API* add_param_data)(void* self, const v3_param_id* id, int32_t* idx); }; static constexpr const v3_tuid v3_param_changes_iid =