summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/export_graph_builder.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-02-16 14:25:49 +0100
committerRobin Gareus <robin@gareus.org>2016-02-16 14:25:49 +0100
commita664fb703e2cc30196231f2614178e834fe804ba (patch)
tree840b6a52775834ac0ff29630500fba3721a5f841 /libs/ardour/ardour/export_graph_builder.h
parentc52854fd3d8fd7316534cafc2d3e125044d0dc83 (diff)
chunk data before analysis, prefer 8K
* consistent spectrum display for all reports (same binsize) * improved performance (power of two)
Diffstat (limited to 'libs/ardour/ardour/export_graph_builder.h')
-rw-r--r--libs/ardour/ardour/export_graph_builder.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/ardour/export_graph_builder.h b/libs/ardour/ardour/export_graph_builder.h
index f2fbbb63fa..0a9912e43e 100644
--- a/libs/ardour/ardour/export_graph_builder.h
+++ b/libs/ardour/ardour/export_graph_builder.h
@@ -127,6 +127,7 @@ class LIBARDOUR_API ExportGraphBuilder
void set_peak (float);
private:
+ typedef boost::shared_ptr<AudioGrapher::Chunker<float> > ChunkerPtr;
typedef boost::shared_ptr<AudioGrapher::SampleFormatConverter<Sample> > FloatConverterPtr;
typedef boost::shared_ptr<AudioGrapher::SampleFormatConverter<int> > IntConverterPtr;
typedef boost::shared_ptr<AudioGrapher::SampleFormatConverter<short> > ShortConverterPtr;
@@ -135,6 +136,7 @@ class LIBARDOUR_API ExportGraphBuilder
boost::ptr_list<Encoder> children;
int data_width;
+ ChunkerPtr chunker;
AnalysisPtr analyser;
bool _analyse;
// Only one of these should be available at a time