diff options
author | Robin Gareus <robin@gareus.org> | 2016-02-11 00:19:01 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-02-11 02:22:54 +0100 |
commit | df0f1b5ced0000ce55b707908ddaa3d8b52105e2 (patch) | |
tree | 82250f7500451d3dd6541e943d90889f264cbb64 /libs/ardour/ardour/export_analysis.h | |
parent | b01485f61f6ffb5ed00eabd9edc7a393f39bb990 (diff) |
stereo waveform, prepare spectrum faceplate
Diffstat (limited to 'libs/ardour/ardour/export_analysis.h')
-rw-r--r-- | libs/ardour/ardour/export_analysis.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libs/ardour/ardour/export_analysis.h b/libs/ardour/ardour/export_analysis.h index 360294ce07..0b40a41947 100644 --- a/libs/ardour/ardour/export_analysis.h +++ b/libs/ardour/ardour/export_analysis.h @@ -33,10 +33,12 @@ namespace ARDOUR { , loudness_range (0) , loudness_hist_max (0) , have_loudness (false) + , n_channels (1) { memset (peaks, 0, sizeof(peaks)); memset (spectrum, 0, sizeof(spectrum)); memset (loudness_hist, 0, sizeof(loudness_hist)); + memset (freq, 0, sizeof(freq)); } ExportAnalysis (const ExportAnalysis& other) @@ -44,10 +46,12 @@ namespace ARDOUR { , loudness_range (other.loudness_range) , loudness_hist_max (other.loudness_hist_max) , have_loudness (other.have_loudness) + , n_channels (other.n_channels) { memcpy (peaks, other.peaks, sizeof(peaks)); memcpy (spectrum, other.spectrum, sizeof(spectrum)); memcpy (loudness_hist, other.loudness_hist, sizeof(loudness_hist)); + memcpy (freq, other.freq, sizeof(freq)); } float loudness; @@ -56,7 +60,10 @@ namespace ARDOUR { int loudness_hist_max; bool have_loudness; - PeakData peaks[800]; + uint32_t n_channels; + uint32_t freq[6]; // y-pos, 50, 100, 500, 1k, 5k, 10k [Hz] + + PeakData peaks[2][800]; float spectrum[800][200]; }; |