comparison audioio/AudioCallbackPlaySource.h @ 130:4c9c04645685

* Reduce time stretcher to one channel when overload occurs
author Chris Cannam
date Mon, 07 Jul 2008 16:49:53 +0000
parents 52af71802ffd
children 72495c4cd315
comparison
equal deleted inserted replaced
129:df5f16b3c925 130:4c9c04645685
245 void playStatusChanged(bool isPlaying); 245 void playStatusChanged(bool isPlaying);
246 246
247 void sampleRateMismatch(size_t requested, size_t available, bool willResample); 247 void sampleRateMismatch(size_t requested, size_t available, bool willResample);
248 248
249 void audioOverloadPluginDisabled(); 249 void audioOverloadPluginDisabled();
250 void audioTimeStretchMultiChannelDisabled();
250 251
251 public slots: 252 public slots:
252 void audioProcessingOverload(); 253 void audioProcessingOverload();
253 254
254 protected slots: 255 protected slots:
322 323
323 void clearRingBuffers(bool haveLock = false, size_t count = 0); 324 void clearRingBuffers(bool haveLock = false, size_t count = 0);
324 void unifyRingBuffers(); 325 void unifyRingBuffers();
325 326
326 RubberBand::RubberBandStretcher *m_timeStretcher; 327 RubberBand::RubberBandStretcher *m_timeStretcher;
328 RubberBand::RubberBandStretcher *m_monoStretcher;
327 float m_stretchRatio; 329 float m_stretchRatio;
330 bool m_stretchMono;
328 331
329 size_t m_stretcherInputCount; 332 size_t m_stretcherInputCount;
330 float **m_stretcherInputs; 333 float **m_stretcherInputs;
331 size_t *m_stretcherInputSizes; 334 size_t *m_stretcherInputSizes;
332 335