Mercurial > hg > svapp
comparison audioio/AudioCallbackPlaySource.h @ 39:4ed2448582cc
* Switch from fftw3 to fftw3f. I think the efficiency improvement is probably
worth the lower precision, although I ought to do a few more tests.
author | Chris Cannam |
---|---|
date | Thu, 15 Jun 2006 12:28:47 +0000 |
parents | 37e3c693af0c |
children |
comparison
equal
deleted
inserted
replaced
38:54287e5e7451 | 39:4ed2448582cc |
---|---|
250 TimeStretcherData(size_t channels, size_t factor, size_t blockSize); | 250 TimeStretcherData(size_t channels, size_t factor, size_t blockSize); |
251 ~TimeStretcherData(); | 251 ~TimeStretcherData(); |
252 | 252 |
253 size_t getFactor() const { return m_factor; } | 253 size_t getFactor() const { return m_factor; } |
254 IntegerTimeStretcher *getStretcher(size_t channel); | 254 IntegerTimeStretcher *getStretcher(size_t channel); |
255 double *getOutputBuffer(size_t channel); | 255 float *getOutputBuffer(size_t channel); |
256 double *getInputBuffer(); | 256 float *getInputBuffer(); |
257 | 257 |
258 void run(size_t channel); | 258 void run(size_t channel); |
259 | 259 |
260 protected: | 260 protected: |
261 TimeStretcherData(const TimeStretcherData &); // not provided | 261 TimeStretcherData(const TimeStretcherData &); // not provided |
262 TimeStretcherData &operator=(const TimeStretcherData &); // not provided | 262 TimeStretcherData &operator=(const TimeStretcherData &); // not provided |
263 | 263 |
264 typedef std::pair<IntegerTimeStretcher *, double *> StretcherBuffer; | 264 typedef std::pair<IntegerTimeStretcher *, float *> StretcherBuffer; |
265 std::map<size_t, StretcherBuffer> m_stretcher; | 265 std::map<size_t, StretcherBuffer> m_stretcher; |
266 double *m_stretchInputBuffer; | 266 float *m_stretchInputBuffer; |
267 size_t m_factor; | 267 size_t m_factor; |
268 size_t m_blockSize; | 268 size_t m_blockSize; |
269 }; | 269 }; |
270 | 270 |
271 size_t m_slowdownCounter; | 271 size_t m_slowdownCounter; |