diff options
author | David Robillard <d@drobilla.net> | 2011-06-01 16:50:12 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-06-01 16:50:12 +0000 |
commit | a473d630eb165272992e90f8d854b1d66ec0be63 (patch) | |
tree | d0d027d4e53cb3883f4098c4736651d0ae89c19a /libs/ardour/transient_detector.cc | |
parent | a46cea06e29bfdb18e0199a665caf5a34d388968 (diff) |
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
Diffstat (limited to 'libs/ardour/transient_detector.cc')
-rw-r--r-- | libs/ardour/transient_detector.cc | 16 |
1 files changed, 8 insertions, 8 deletions
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; } |