Mercurial > hg > svapp
diff audio/AudioCallbackPlaySource.h @ 548:baa11365ebdd bqaudioio
Merge from branch bqresample
author | Chris Cannam |
---|---|
date | Wed, 07 Dec 2016 11:51:42 +0000 |
parents | c4391f6c7484 |
children | c732251237b1 |
line wrap: on
line diff
--- a/audio/AudioCallbackPlaySource.h Wed Dec 07 11:50:54 2016 +0000 +++ b/audio/AudioCallbackPlaySource.h Wed Dec 07 11:51:42 2016 +0000 @@ -13,8 +13,8 @@ COPYING included with this distribution for more information. */ -#ifndef _AUDIO_CALLBACK_PLAY_SOURCE_H_ -#define _AUDIO_CALLBACK_PLAY_SOURCE_H_ +#ifndef AUDIO_CALLBACK_PLAY_SOURCE_H +#define AUDIO_CALLBACK_PLAY_SOURCE_H #include "base/RingBuffer.h" #include "base/AudioPlaySource.h" @@ -39,6 +39,10 @@ class RubberBandStretcher; } +namespace breakfastquay { + class Resampler; +} + class Model; class ViewManagerBase; class AudioGenerator; @@ -116,8 +120,7 @@ virtual sv_frame_t getPlayEndFrame() { return m_lastModelEndFrame; } /** - * Set the playback target. This should be called by the target - * class. + * Set the playback target. */ virtual void setSystemPlaybackTarget(breakfastquay::SystemPlaybackTarget *); @@ -227,12 +230,6 @@ void setTimeStretch(double factor); /** - * Set the resampler quality, 0 - 2 where 0 is fastest and 2 is - * highest quality. - */ - void setResampleQuality(int q); - - /** * Set a single real-time plugin as a processing effect for * auditioning during playback. * @@ -396,10 +393,8 @@ QMutex m_mutex; QWaitCondition m_condition; FillThread *m_fillThread; - SRC_STATE *m_converter; - SRC_STATE *m_crapConverter; // for use when playing very fast - int m_resampleQuality; - void initialiseConverter(); + breakfastquay::Resampler *m_resampler; + void initialiseResampler(); }; #endif