changeset 4878:77b04219f3e2

[gaim-migrate @ 5208] someone please let me know if this sounds better with 8-bit sounds (like the ones that come with winaim) committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Mon, 24 Mar 2003 06:58:25 +0000
parents 249382064693
children 4f5bd9a2da37
files src/sound.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);