diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2016-12-06 20:55:17 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2016-12-06 20:55:17 +1000 |
commit | 4985f0d7ae91c8c7aecffbe41ce648097e78c1a8 (patch) | |
tree | 0f1929c1021db1bac75fd4f000c0b79b8af25698 /libs | |
parent | 6b8cadef0170b6d8e7a067330c30b964c7e5b48d (diff) |
Include last sample in reverse test for nonsilence in end trim during export
Diffstat (limited to 'libs')
-rw-r--r-- | libs/audiographer/audiographer/general/silence_trimmer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/audiographer/audiographer/general/silence_trimmer.h b/libs/audiographer/audiographer/general/silence_trimmer.h index e7ae089028..7cfa0658f1 100644 --- a/libs/audiographer/audiographer/general/silence_trimmer.h +++ b/libs/audiographer/audiographer/general/silence_trimmer.h @@ -275,7 +275,7 @@ private: { framecnt_t last_sample_index = c.frames() - 1; - for (framecnt_t i = last_sample_index; i != 0; --i) { + for (framecnt_t i = last_sample_index; i >= 0; --i) { if (!tester.is_silent (c.data()[i])) { result_frame = i; // Round down to nearest interleaved "frame" beginning |