* Fix under/overruns in ladspa plugin

This commit is contained in:
Chris Cannam
2008-07-04 14:19:32 +00:00
parent 59a160eb3f
commit 86462dbd9f
9 changed files with 145 additions and 71 deletions

View File

@@ -67,7 +67,9 @@ protected:
static void deactivate(LADSPA_Handle);
static void cleanup(LADSPA_Handle);
void activateImpl();
void runImpl(unsigned long);
void runImpl(unsigned long, unsigned long offset);
void updateRatio();
void updateCrispness();
void updateFormant();
@@ -85,7 +87,8 @@ protected:
int m_currentCrispness;
bool m_currentFormant;
size_t m_extraLatency;
size_t m_blockSize;
size_t m_reserve;
RubberBand::RubberBandStretcher *m_stretcher;
RubberBand::RingBuffer<float> *m_outputBuffer[2];