From a473d630eb165272992e90f8d854b1d66ec0be63 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 1 Jun 2011 16:50:12 +0000 Subject: Fix broken whitespace. I'd apologize for the compile times if it was my fault :D git-svn-id: svn://localhost/ardour2/branches/3.0@9654 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/transient_detector.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'libs/ardour/transient_detector.cc') diff --git a/libs/ardour/transient_detector.cc b/libs/ardour/transient_detector.cc index 1fda65bde1..75e9b4c5e1 100644 --- a/libs/ardour/transient_detector.cc +++ b/libs/ardour/transient_detector.cc @@ -23,7 +23,7 @@ TransientDetector::TransientDetector (float sr) // XXX this should load the above-named plugin and get the current version _op_id += ":2"; - + threshold = 0.00; } @@ -126,18 +126,18 @@ void TransientDetector::update_positions (Readable* src, uint32_t channel, AnalysisFeatureList& positions) { Plugin::FeatureSet features; - + Sample* data = 0; float* bufs[1] = { 0 }; - + int buff_size = 1024; int step_size = 64; - + data = new Sample[buff_size]; bufs[0] = data; - + AnalysisFeatureList::iterator i = positions.begin(); - + while (i != positions.end()) { framecnt_t to_read; @@ -148,7 +148,7 @@ TransientDetector::update_positions (Readable* src, uint32_t channel, AnalysisFe if (src->read (data, (*i) - buff_size, to_read, channel) != to_read) { break; } - + // Simple heuristic for locating approx correct cut position. for (int j = 0; j < buff_size;){ @@ -161,7 +161,7 @@ TransientDetector::update_positions (Readable* src, uint32_t channel, AnalysisFe (*i) = (*i) - buff_size + (j + 24); break; } - + j = j + step_size; } -- cgit v1.2.3