Browse Source

Fixup sfzero for new water changes

Signed-off-by: falkTX <falktx@gmail.com>
tags/v2.1-alpha1-winvst
parent
commit
67ca1fa6f7
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      source/modules/sfzero/sfzero/SFZVoice.cpp

+ 3
- 2
source/modules/sfzero/sfzero/SFZVoice.cpp View File

@@ -192,8 +192,9 @@ void Voice::renderNextBlock(water::AudioSampleBuffer &outputBuffer, int startSam

while (--numSamples >= 0)
{
int pos = static_cast<int>(sourceSamplePosition);
jassert(pos >= 0 && pos < bufferNumSamples); // leoo
const int pos = static_cast<int>(sourceSamplePosition);
CARLA_SAFE_ASSERT_CONTINUE(pos >= 0 && pos < bufferNumSamples); // leoo

float alpha = static_cast<float>(sourceSamplePosition - pos);
float invAlpha = 1.0f - alpha;
int nextPos = pos + 1;


Loading…
Cancel
Save