ref: a48b568a48019dfbaba46df760c27bf434667031
parent: ab029955926a37d3b48e9309faf7d9af785cd21f
author: cbagwell <cbagwell>
date: Mon Oct 16 13:07:15 EDT 2000
Fixing bug in rate code for input sphere files.
--- a/Changelog
+++ b/Changelog
@@ -14,6 +14,8 @@
o Added a new fade in/out effect from Ari Moisio.
o AIFF files now ignore a MARK chunk if the loop type is NoLoop (0).
o Fixed bug were it was impossible to output ADPCM data in wav files.
+ o Fixed bug were rate had to be specified for sphere files (fix from
+ Antti Honkela).
sox-12.17
---------
--- a/soxexam.1
+++ b/soxexam.1
@@ -25,7 +25,7 @@
then sox will generally select a default data type to save it in.
You can override the default data type selection by using command line
options. This is also useful for producing a output file with higher
-or lower percision data and/or sample rate.
+or lower precision data and/or sample rate.
.P
Most file formats that contain headers can automatically be read in.
When working with headerless file formats then a user must manually
@@ -36,17 +36,17 @@
extensions on your filenames you will not have to specify the corrisponding
options on the command line.
.P
-.B Percision
+.B Precision
.P
The following data types and formats can be represented by their total
-uncompressed bit percision. When converting from one data type to another
-care must be taken to insure it has an equal or greater percision. If not
+uncompressed bit precision. When converting from one data type to another
+care must be taken to insure it has an equal or greater precision. If not
then the audio quality will be degraded. This is not always a bad thing
when your working with things such as voice audio and are concerned about
disk space or bandwidth of the audio data.
.P
.br
- Data Format Percision
+ Data Format Precision
.br
___________ _________
.br
--- a/src/sphere.c
+++ b/src/sphere.c
@@ -91,7 +91,7 @@
}
}
if (strncmp(buf, "sample_rate", 11) == 0 &&
- ft->info.rate == -1)
+ ft->info.rate == 0)
{
#ifdef __alpha__
sscanf(buf, "%s %s %d", fldname, fldtype, &ft->info.rate);