comparison audio/AudioCallbackPlaySource.h @ 543:699db455a3e1 3.0-integration

Start pruning other resampler logic than bqresample
author Chris Cannam
date Mon, 05 Dec 2016 16:54:19 +0000
parents 39e94df71d24
children 4de547a5905c
comparison
equal deleted inserted replaced
542:167d37937436 543:699db455a3e1
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;
400 void initialiseConverter(); 397 void initialiseConverter();
401 }; 398 };
402 399
403 #endif 400 #endif
404 401