ref: 7cfe6fdb10ec6fe6cb9c7e80b28df0ed9abfd1e5
parent: d75d78ae28fee905f82fb5d8b01aa57aaf0965d1
author: cbagwell <cbagwell>
date: Fri Jan 26 08:57:12 EST 2001
Fixing typos in oss update
--- a/src/oss.c
+++ b/src/oss.c
@@ -43,11 +43,12 @@
static int ossdspinit(ft)
ft_t ft;
{
- int sampletype, samplesize, dsp_stereo;
+ int sampletype=AFMT_U8, samplesize=8, dsp_stereo;
int tmp, rc;
if (ft->info.rate == 0.0) ft->info.rate = 8000;
if (ft->info.size == -1) ft->info.size = ST_SIZE_BYTE;
+
if (ft->info.size == ST_SIZE_BYTE) {
sampletype = AFMT_U8;
samplesize = 8;
@@ -133,7 +134,7 @@
else
{
ft->info.size = ST_SIZE_WORD;
- ft->info.encoding = ST_ENCODING_SIGNED2;
+ ft->info.encoding = ST_ENCODING_SIGN2;
st_report("OSS driver doesn't like unsigned bytes");
st_report("Forcing to signed words");
if (ST_IS_BIGENDIAN)