13
0

Include last sample in reverse test for nonsilence in end trim during export

This commit is contained in:
Tim Mayberry 2016-12-06 20:55:17 +10:00
parent 6b8cadef01
commit 4985f0d7ae

View File

@ -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