ref: c54d56076b1c4b554de63bd5f5186f3e3f723c1c
parent: e07252d769a2990f8883c30db1c04c649a550376
author: cbagwell <cbagwell>
date: Sun Apr 15 16:30:59 EDT 2001
Fixing sample rates for tx16w files.
--- a/src/trim.c
+++ b/src/trim.c
@@ -98,7 +98,7 @@
trim->length = (double)effp->ininfo.channels * effp->ininfo.rate * trim->length / TIMERES;
if (trim->length < 0)
{
- st_fail("trim: start must be positive");
+ st_fail("trim: length must be positive");
}
trim->done = 0;
--- a/src/tx16w.c
+++ b/src/tx16w.c
@@ -136,13 +136,13 @@
switch( sample_rate ) {
case 1:
- ft->info.rate = 33000;
+ ft->info.rate = 33333;
break;
case 2:
ft->info.rate = 50000;
break;
case 3:
- ft->info.rate = 16000;
+ ft->info.rate = 16667;
break;
default:
blewIt = 1;
@@ -150,7 +150,7 @@
case 0x06:
if ( (gunk[5] & 0xFE) == 0x52 ) {
blewIt = 0;
- ft->info.rate = 33000;
+ ft->info.rate = 33333;
}
break;
case 0x10:
@@ -162,13 +162,13 @@
case 0xF6:
if ( (gunk[5] & 0xFE) == 0x52 ) {
blewIt = 0;
- ft->info.rate = 16000;
+ ft->info.rate = 16667;
}
break;
}
if ( blewIt ) {
st_report("Invalid sample rate identifier found %d", (int)sample_rate);
- ft->info.rate = 33000;
+ ft->info.rate = 33333;
}
}
st_report("Sample rate = %ld",ft->info.rate);