comparison audioio/PhaseVocoderTimeStretcher.h @ 100:f3516e520652

* Add non-fftw3 fft alternative
author Chris Cannam
date Fri, 09 Feb 2007 11:32:34 +0000
parents bedc7517b6e8
children
comparison
equal deleted inserted replaced
99:77267127a8ce 100:f3516e520652
17 #define _PHASE_VOCODER_TIME_STRETCHER_H_ 17 #define _PHASE_VOCODER_TIME_STRETCHER_H_
18 18
19 #include "base/Window.h" 19 #include "base/Window.h"
20 #include "base/RingBuffer.h" 20 #include "base/RingBuffer.h"
21 21
22 #include <fftw3.h> 22 #include "data/fft/FFTapi.h"
23 23
24 #include <QMutex> 24 #include <QMutex>
25 25
26 /** 26 /**
27 * A time stretcher that alters the performance speed of audio, 27 * A time stretcher that alters the performance speed of audio,
170 int m_transientThreshold; 170 int m_transientThreshold;
171 bool m_prevTransient; 171 bool m_prevTransient;
172 172
173 float *m_tempbuf; 173 float *m_tempbuf;
174 float **m_time; 174 float **m_time;
175 fftwf_complex **m_freq; 175 fftf_complex **m_freq;
176 fftwf_plan *m_plan; 176 fftf_plan *m_plan;
177 fftwf_plan *m_iplan; 177 fftf_plan *m_iplan;
178 178
179 RingBuffer<float> **m_inbuf; 179 RingBuffer<float> **m_inbuf;
180 RingBuffer<float> **m_outbuf; 180 RingBuffer<float> **m_outbuf;
181 float **m_mashbuf; 181 float **m_mashbuf;
182 float *m_modulationbuf; 182 float *m_modulationbuf;