summaryrefslogtreecommitdiff
path: root/gtk2_ardour/fft.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-02-28 03:08:21 +0100
committerRobin Gareus <robin@gareus.org>2019-02-28 03:08:21 +0100
commit62470f3cb431e8378af303ad53f92b4948c459ad (patch)
tree6738d4f371ecdbfd92307b98a43b66fdf2f8189e /gtk2_ardour/fft.h
parent06854e131520077b41e4da2bb6dc0f7141609be5 (diff)
NO-OP: whitespace
Diffstat (limited to 'gtk2_ardour/fft.h')
-rw-r--r--gtk2_ardour/fft.h50
1 files changed, 24 insertions, 26 deletions
diff --git a/gtk2_ardour/fft.h b/gtk2_ardour/fft.h
index 6022f1c770..07a4fe8515 100644
--- a/gtk2_ardour/fft.h
+++ b/gtk2_ardour/fft.h
@@ -36,42 +36,40 @@ namespace GTKArdour {
class FFT
{
- public:
- FFT(uint32_t);
- ~FFT();
+public:
+ FFT (uint32_t);
+ ~FFT ();
- enum WindowingType {
- NONE,
- HANN
- };
+ enum WindowingType {
+ NONE,
+ HANN
+ };
- void reset();
- void analyze(ARDOUR::Sample *, WindowingType w = NONE);
- void calculate();
+ void reset ();
+ void analyze (ARDOUR::Sample*, WindowingType w = NONE);
+ void calculate ();
- uint32_t bins() const { return _data_size; }
+ uint32_t bins () const { return _data_size; }
- float power_at_bin(uint32_t i) const { return _power_at_bin[i]; }
- float phase_at_bin(uint32_t i) const { return _phase_at_bin[i]; }
+ float power_at_bin (uint32_t i) const { return _power_at_bin[i]; }
+ float phase_at_bin (uint32_t i) const { return _phase_at_bin[i]; }
+private:
+ float* get_hann_window ();
- private:
+ uint32_t const _window_size;
+ uint32_t const _data_size;
+ uint32_t _iterations;
- float *get_hann_window();
+ float* _hann_window;
- uint32_t const _window_size;
- uint32_t const _data_size;
- uint32_t _iterations;
+ float* _fftInput;
+ float* _fftOutput;
- float *_hann_window;
+ float* _power_at_bin;
+ float* _phase_at_bin;
- float *_fftInput;
- float *_fftOutput;
-
- float *_power_at_bin;
- float *_phase_at_bin;
-
- fftwf_plan _plan;
+ fftwf_plan _plan;
};
}