comparison audio/AudioCallbackPlaySource.h @ 546:4de547a5905c 3.0-integration

Update for bqaudioio changes
author Chris Cannam
date Tue, 06 Dec 2016 15:59:06 +0000
parents 699db455a3e1
children c732251237b1
comparison
equal deleted inserted replaced
543:699db455a3e1 546:4de547a5905c
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;
44 } 40 }
45 41
46 class Model; 42 class Model;
47 class ViewManagerBase; 43 class ViewManagerBase;
48 class AudioGenerator; 44 class AudioGenerator;
165 * Return the sample rate set by the target audio device (or the 161 * Return the sample rate set by the target audio device (or the
166 * source sample rate if the target hasn't set one). 162 * source sample rate if the target hasn't set one).
167 */ 163 */
168 virtual sv_samplerate_t getTargetSampleRate() const; 164 virtual sv_samplerate_t getTargetSampleRate() const;
169 165
166 /**
167 * Indicate how many channels the target audio device was opened
168 * with. Note that the target device does channel mixing in the
169 * case where our requested channel count does not match its.
170 */
171 void setSystemPlaybackChannelCount(int);
172
170 /** 173 /**
171 * Set the current output levels for metering (for call from the 174 * Set the current output levels for metering (for call from the
172 * target) 175 * target)
173 */ 176 */
174 void setOutputLevels(float left, float right); 177 void setOutputLevels(float left, float right);
391 }; 394 };
392 395
393 QMutex m_mutex; 396 QMutex m_mutex;
394 QWaitCondition m_condition; 397 QWaitCondition m_condition;
395 FillThread *m_fillThread; 398 FillThread *m_fillThread;
396 breakfastquay::Resampler *m_resampler;
397 void initialiseConverter();
398 }; 399 };
399 400
400 #endif 401 #endif
401 402
402 403