ref: fa9a674a9f5313609e755da2653ee43dbb5dcd09
parent: 4c8e01b3df850a0aefdc5d9860d7cff9a4f74dcf
author: cbagwell <cbagwell>
date: Thu Aug 3 14:37:41 EDT 2000
alaw and mulaw fix in wav.c.
--- a/src/wav.c
+++ b/src/wav.c
@@ -536,6 +536,12 @@
ft->info.encoding = ST_ENCODING_ALAW;
else
st_warn("User options overriding encoding read in .wav header");
+
+ /* Needed by rawread() functions */
+ rc = st_rawstartread(ft);
+ if (rc)
+ return rc;
+
break;
case WAVE_FORMAT_MULAW:
@@ -543,6 +549,12 @@
ft->info.encoding = ST_ENCODING_ULAW;
else
st_warn("User options overriding encoding read in .wav header");
+
+ /* Needed by rawread() functions */
+ rc = st_rawstartread(ft);
+ if (rc)
+ return rc;
+
break;
case WAVE_FORMAT_OKI_ADPCM: