Mercurial > hg > svapp
comparison audio/AudioCallbackPlaySource.h @ 471:0d725dd7f99c 3.0-integration
Avoid playing repeated buffer while re-seeking
author | Chris Cannam |
---|---|
date | Wed, 05 Aug 2015 09:42:25 +0100 |
parents | 56acd9368532 |
children | f93820d36cb0 |
comparison
equal
deleted
inserted
replaced
470:4480b031fe38 | 471:0d725dd7f99c |
---|---|
217 /** | 217 /** |
218 * Get "count" samples (at the target sample rate) of the mixed | 218 * Get "count" samples (at the target sample rate) of the mixed |
219 * audio data, in all channels. This may safely be called from a | 219 * audio data, in all channels. This may safely be called from a |
220 * realtime thread. | 220 * realtime thread. |
221 */ | 221 */ |
222 virtual void getSourceSamples(int count, float **buffer); | 222 virtual int getSourceSamples(int count, float **buffer); |
223 | 223 |
224 /** | 224 /** |
225 * Set the time stretcher factor (i.e. playback speed). | 225 * Set the time stretcher factor (i.e. playback speed). |
226 */ | 226 */ |
227 void setTimeStretch(double factor); | 227 void setTimeStretch(double factor); |