DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit d8c26737120cc36aacfb61c7c6b667eb6814e392
parent 581cfa5af434ebb3135b522c0c99066e8d94cd2e
Author: falkTX <falktx@falktx.com>
Date:   Sun, 14 May 2023 03:15:17 +0200

travesty: change a v3_param_changes arg to use const

Signed-off-by: falkTX <falktx@falktx.com>

Diffstat:
Mdistrho/src/DistrhoPluginVST3.cpp | 2+-
Mdistrho/src/travesty/audio_processor.h | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git 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 @@ -1,6 +1,6 @@ /* * travesty, pure C VST3-compatible interface - * Copyright (C) 2021-2022 Filipe Coelho <falktx@falktx.com> + * Copyright (C) 2021-2023 Filipe Coelho <falktx@falktx.com> * * 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 =