comparison src/sound.c @ 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 b69bbf9b1044
children 0241d6b6702d
comparison
equal deleted inserted replaced
4877:249382064693 4878:77b04219f3e2
228 format.rate = afGetRate(file, AF_DEFAULT_TRACK); 228 format.rate = afGetRate(file, AF_DEFAULT_TRACK);
229 format.channels = afGetChannels(file, AF_DEFAULT_TRACK); 229 format.channels = afGetChannels(file, AF_DEFAULT_TRACK);
230 afGetSampleFormat(file, AF_DEFAULT_TRACK, &in_fmt, 230 afGetSampleFormat(file, AF_DEFAULT_TRACK, &in_fmt,
231 &format.bits); 231 &format.bits);
232 232
233 /* XXX: libao doesn't seem to like 8-bit sounds, so we'll
234 * let libaudiofile make them a bit better for us */
235 if(format.bits == 8)
236 format.bits = 16;
237
233 afSetVirtualSampleFormat(file, AF_DEFAULT_TRACK, 238 afSetVirtualSampleFormat(file, AF_DEFAULT_TRACK,
234 AF_SAMPFMT_TWOSCOMP, format.bits); 239 AF_SAMPFMT_TWOSCOMP, format.bits);
235 240
236 #if __BYTE_ORDER == __BIG_ENDIAN 241 #if __BYTE_ORDER == __BIG_ENDIAN
237 format.byte_format = AO_FMT_BIG; 242 format.byte_format = AO_FMT_BIG;