Browse Source

travesty: change a v3_param_changes arg to use const

Signed-off-by: falkTX <falktx@falktx.com>
pull/421/head
falkTX 2 years ago
parent
commit
d8c2673712
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      distrho/src/DistrhoPluginVST3.cpp
  2. +2
    -2
      distrho/src/travesty/audio_processor.h

+ 1
- 1
distrho/src/DistrhoPluginVST3.cpp View File

@@ -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)
{


+ 2
- 2
distrho/src/travesty/audio_processor.h View File

@@ -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 =


Loading…
Cancel
Save