comparison audio/AudioCallbackPlaySource.h @ 551:b9d8c7a690d6 bqresample

Add a ResamplerWrapper
author Chris Cannam
date Wed, 07 Dec 2016 13:57:45 +0000
parents c732251237b1
children 8c11ca1ebc39
comparison
equal deleted inserted replaced
550:c732251237b1 551:b9d8c7a690d6
38 namespace RubberBand { 38 namespace RubberBand {
39 class RubberBandStretcher; 39 class RubberBandStretcher;
40 } 40 }
41 41
42 namespace breakfastquay { 42 namespace breakfastquay {
43 class Resampler; 43 class ResamplerWrapper;
44 } 44 }
45 45
46 class Model; 46 class Model;
47 class ViewManagerBase; 47 class ViewManagerBase;
48 class AudioGenerator; 48 class AudioGenerator;
122 /** 122 /**
123 * Set the playback target. 123 * Set the playback target.
124 */ 124 */
125 virtual void setSystemPlaybackTarget(breakfastquay::SystemPlaybackTarget *); 125 virtual void setSystemPlaybackTarget(breakfastquay::SystemPlaybackTarget *);
126 126
127 /**
128 * Set the resampler wrapper, if one is in use.
129 */
130 virtual void setResamplerWrapper(breakfastquay::ResamplerWrapper *);
131
127 /** 132 /**
128 * Set the block size of the target audio device. This should be 133 * Set the block size of the target audio device. This should be
129 * called by the target class. 134 * called by the target class.
130 */ 135 */
131 virtual void setSystemPlaybackBlockSize(int blockSize); 136 virtual void setSystemPlaybackBlockSize(int blockSize);
398 }; 403 };
399 404
400 QMutex m_mutex; 405 QMutex m_mutex;
401 QWaitCondition m_condition; 406 QWaitCondition m_condition;
402 FillThread *m_fillThread; 407 FillThread *m_fillThread;
408 breakfastquay::ResamplerWrapper *m_resamplerWrapper; // I don't own this
403 }; 409 };
404 410
405 #endif 411 #endif
406 412
407 413