comparison base/AudioPlaySource.h @ 1322:e939a365e4d2 3.0-integration

Merge from branch bqresample
author Chris Cannam
date Fri, 09 Dec 2016 18:01:55 +0000
parents ca43c4b7719c
children 8541563f1fd3
comparison
equal deleted inserted replaced
1320:983667969a82 1322:e939a365e4d2
68 * that wants to play at a different rate will sound wrong. 68 * that wants to play at a different rate will sound wrong.
69 */ 69 */
70 virtual sv_samplerate_t getSourceSampleRate() const = 0; 70 virtual sv_samplerate_t getSourceSampleRate() const = 0;
71 71
72 /** 72 /**
73 * Return the sample rate set by the target audio device (or the 73 * Return the sample rate set by the target audio device (or 0 if
74 * source sample rate if the target hasn't set one). If the 74 * the target hasn't told us yet). If the source and target
75 * source and target sample rates differ, resampling will occur. 75 * sample rates differ, resampling will occur.
76 *
77 * Note that we don't actually do any processing at the device
78 * sample rate. All processing happens at the source sample rate,
79 * and then a resampler is applied if necessary at the interface
80 * between application and driver layer.
76 */ 81 */
77 virtual sv_samplerate_t getTargetSampleRate() const = 0; 82 virtual sv_samplerate_t getDeviceSampleRate() const = 0;
78 83
79 /** 84 /**
80 * Get the block size of the target audio device. This may be an 85 * Get the block size of the target audio device. This may be an
81 * estimate or upper bound, if the target has a variable block 86 * estimate or upper bound, if the target has a variable block
82 * size; the source should behave itself even if this value turns 87 * size; the source should behave itself even if this value turns