Signed-off-by: falkTX <falktx@falktx.com>pull/117/head
@@ -571,7 +571,7 @@ public: | |||||
//============================================================================== | //============================================================================== | ||||
// Juce calls | // Juce calls | ||||
void audioProcessorParameterChanged (AudioProcessor*, int index, float newValue) | |||||
void audioProcessorParameterChanged (AudioProcessor*, int index, float newValue) override | |||||
{ | { | ||||
if (inParameterChangedCallback.get()) | if (inParameterChangedCallback.get()) | ||||
{ | { | ||||
@@ -596,7 +596,7 @@ public: | |||||
} | } | ||||
} | } | ||||
void audioProcessorChanged (AudioProcessor*, const ChangeDetails& details) | |||||
void audioProcessorChanged (AudioProcessor*, const ChangeDetails& details) override | |||||
{ | { | ||||
if (details.programChanged && filter != nullptr && programsHost != nullptr) | if (details.programChanged && filter != nullptr && programsHost != nullptr) | ||||
{ | { | ||||
@@ -610,7 +610,7 @@ public: | |||||
} | } | ||||
} | } | ||||
void audioProcessorParameterChangeGestureBegin (AudioProcessor*, int parameterIndex) | |||||
void audioProcessorParameterChangeGestureBegin (AudioProcessor*, int parameterIndex) override | |||||
{ | { | ||||
if (uiTouch == nullptr) | if (uiTouch == nullptr) | ||||
return; | return; | ||||
@@ -629,7 +629,7 @@ public: | |||||
} | } | ||||
} | } | ||||
void audioProcessorParameterChangeGestureEnd (AudioProcessor*, int parameterIndex) | |||||
void audioProcessorParameterChangeGestureEnd (AudioProcessor*, int parameterIndex) override | |||||
{ | { | ||||
if (uiTouch == nullptr) | if (uiTouch == nullptr) | ||||
return; | return; | ||||
@@ -667,7 +667,7 @@ public: | |||||
} | } | ||||
} | } | ||||
void timerCallback() | |||||
void timerCallback() override | |||||
{ | { | ||||
if (externalUI != nullptr && externalUI->isClosed()) | if (externalUI != nullptr && externalUI->isClosed()) | ||||
{ | { | ||||
@@ -434,7 +434,7 @@ public: | |||||
{ | { | ||||
const int numChannels = jmax (numIn, numOut); | const int numChannels = jmax (numIn, numOut); | ||||
AudioBuffer<FloatType> chans (tmpBuffers.channels, isMidiEffect ? 0 : numChannels, numSamples); | |||||
juce::AudioBuffer<FloatType> chans (tmpBuffers.channels, isMidiEffect ? 0 : numChannels, numSamples); | |||||
if (isBypassed && processor->getBypassParameter() == nullptr) | if (isBypassed && processor->getBypassParameter() == nullptr) | ||||
processor->processBlockBypassed (chans, midiEvents); | processor->processBlockBypassed (chans, midiEvents); | ||||
@@ -23,6 +23,8 @@ | |||||
============================================================================== | ============================================================================== | ||||
*/ | */ | ||||
#pragma once | |||||
#include <juce_audio_plugin_client/juce_audio_plugin_client.h> | #include <juce_audio_plugin_client/juce_audio_plugin_client.h> | ||||
#include "juce_CreatePluginFilter.h" | #include "juce_CreatePluginFilter.h" | ||||
@@ -54,9 +54,9 @@ namespace juce | |||||
const auto juce_strcat = [] (auto&& head, auto&&... tail) { strcat_s (head, numElementsInArray (head), tail...); }; | const auto juce_strcat = [] (auto&& head, auto&&... tail) { strcat_s (head, numElementsInArray (head), tail...); }; | ||||
const auto juce_sscanf = [] (auto&&... args) { sscanf_s (args...); }; | const auto juce_sscanf = [] (auto&&... args) { sscanf_s (args...); }; | ||||
#else | #else | ||||
const auto juce_sprintf = [] (auto&&... args) { sprintf (args...); }; | |||||
const auto juce_strcpy = [] (auto&&... args) { strcpy (args...); }; | |||||
const auto juce_strcat = [] (auto&&... args) { strcat (args...); }; | |||||
const auto juce_sprintf = [] (auto&& head, auto&&... args) { snprintf (head, numElementsInArray (head), args...); }; | |||||
const auto juce_strcpy = [] (auto&& head, auto&& tail) { strncpy (head, tail, numElementsInArray (head)); }; | |||||
const auto juce_strcat = [] (auto&& head, auto&& tail) { strncat (head, tail, numElementsInArray (head)); }; | |||||
const auto juce_sscanf = [] (auto&&... args) { sscanf (args...); }; | const auto juce_sscanf = [] (auto&&... args) { sscanf (args...); }; | ||||
#endif | #endif | ||||