Mercurial > hg > svapp
comparison audio/AudioCallbackPlaySource.h @ 544:c4391f6c7484 bqresample
Start pruning other resampler logic than bqresample
author | Chris Cannam |
---|---|
date | Mon, 05 Dec 2016 16:56:36 +0000 |
parents | 39e94df71d24 |
children | c732251237b1 |
comparison
equal
deleted
inserted
replaced
542:167d37937436 | 544:c4391f6c7484 |
---|---|
35 #include <set> | 35 #include <set> |
36 #include <map> | 36 #include <map> |
37 | 37 |
38 namespace RubberBand { | 38 namespace RubberBand { |
39 class RubberBandStretcher; | 39 class RubberBandStretcher; |
40 } | |
41 | |
42 namespace breakfastquay { | |
43 class Resampler; | |
40 } | 44 } |
41 | 45 |
42 class Model; | 46 class Model; |
43 class ViewManagerBase; | 47 class ViewManagerBase; |
44 class AudioGenerator; | 48 class AudioGenerator; |
222 | 226 |
223 /** | 227 /** |
224 * Set the time stretcher factor (i.e. playback speed). | 228 * Set the time stretcher factor (i.e. playback speed). |
225 */ | 229 */ |
226 void setTimeStretch(double factor); | 230 void setTimeStretch(double factor); |
227 | |
228 /** | |
229 * Set the resampler quality, 0 - 2 where 0 is fastest and 2 is | |
230 * highest quality. | |
231 */ | |
232 void setResampleQuality(int q); | |
233 | 231 |
234 /** | 232 /** |
235 * Set a single real-time plugin as a processing effect for | 233 * Set a single real-time plugin as a processing effect for |
236 * auditioning during playback. | 234 * auditioning during playback. |
237 * | 235 * |
393 }; | 391 }; |
394 | 392 |
395 QMutex m_mutex; | 393 QMutex m_mutex; |
396 QWaitCondition m_condition; | 394 QWaitCondition m_condition; |
397 FillThread *m_fillThread; | 395 FillThread *m_fillThread; |
398 SRC_STATE *m_converter; | 396 breakfastquay::Resampler *m_resampler; |
399 int m_resampleQuality; | 397 void initialiseResampler(); |
400 void initialiseConverter(); | |
401 }; | 398 }; |
402 | 399 |
403 #endif | 400 #endif |
404 | 401 |
405 | 402 |