ref: c6059aab8534feeaeee7bd5504524bc1c74c8462
parent: 15bbd2716b29f0a8ea91b5d7326135921b1a676d
author: cbagwell <cbagwell>
date: Sun Sep 18 20:29:27 EDT 2005
Vorbis wasn't returning # of samples written.
--- a/src/sox.c
+++ b/src/sox.c
@@ -1086,9 +1086,9 @@
return ST_EOF;
}
total += len;
- output_samples += (len / file_desc[file_count-1]->info.channels);
- efftab[neffects-1].odone = efftab[neffects-1].olen = 0;
} while (total < efftab[neffects-1].olen);
+ output_samples += (total / file_desc[file_count-1]->info.channels);
+ efftab[neffects-1].odone = efftab[neffects-1].olen = 0;
}
else
{
--- a/src/vorbis.c
+++ b/src/vorbis.c
@@ -438,7 +438,7 @@
}
}
- return (ST_SUCCESS);
+ return (len);
}
int st_vorbisstopwrite(ft_t ft)