src/sound.c

changeset 4878
c77950408cfa
parent 4592
2781fc0f3d32
child 5211
94d9756c381f
--- a/src/sound.c	Sun Mar 23 22:00:14 2003 +0000
+++ b/src/sound.c	Mon Mar 24 06:58:25 2003 +0000
@@ -230,6 +230,11 @@
 			afGetSampleFormat(file, AF_DEFAULT_TRACK, &in_fmt,
 					&format.bits);
 
+			/* XXX: libao doesn't seem to like 8-bit sounds, so we'll
+			 * let libaudiofile make them a bit better for us */
+			if(format.bits == 8)
+				format.bits = 16;
+
 			afSetVirtualSampleFormat(file, AF_DEFAULT_TRACK,
 					AF_SAMPFMT_TWOSCOMP, format.bits);
 

mercurial