v1.4.89 TInternal

This commit is contained in:
Robin E. R. Davies
2025-08-21 19:02:59 -04:00
parent 1ac88ae633
commit d149577cd8
10 changed files with 61 additions and 19 deletions
+11 -2
View File
@@ -101,6 +101,7 @@ namespace pipedal
std::vector<bool> isInputControlPort;
std::vector<float> defaultInputControlValues;
std::vector<bool> isInputTriggerControlPort;;
int bypassControlIndex = -1;
virtual std::string GetUri() const { return info->uri(); }
@@ -185,6 +186,8 @@ namespace pipedal
const void *data);
int GetBypassControlPort() const { return bypassControlIndex; }
void ResetInputAtomBuffer(char*data);
void ResetOutputAtomBuffer(char*data);
@@ -202,7 +205,9 @@ namespace pipedal
int actualAudioInputs = 0;
int actualAudioOutputs = 0;
std::vector<std::vector<float>> outputMixBuffers;
void BypassTo(float value);
void BypassDezipperTo(float value);
void BypassDezipperSet(float value);
bool borrowedEffect = false;
bool activated = false;
@@ -329,7 +334,11 @@ namespace pipedal
if (bypass != this->bypass)
{
this->bypass = bypass;
BypassTo(bypass? 1.0f: 0.0f);
if (bypassControlIndex == -1) {
BypassDezipperTo(bypass? 1.0f: 0.0f);
} else {
controlValues[bypassControlIndex] = bypass? 1.0f: 0.0f;
}
}
}