[MPlayer-dev-eng] [PATCH]: dsound and win32 wave out should accept AF_FORMAT_U8 not AF_FORMAT_S8
Zhou Zongyi
zhouzongyi at pset.suntec.net
Wed Feb 25 09:02:05 CET 2009
Hi all,
Currently -ao dsound -af format=s8 produces noise. This patch fixes this problem.
Index: libao2/ao_dsound.c
===================================================================
--- libao2/ao_dsound.c
+++ libao2/ao_dsound.c
@@ -431,7 +431,7 @@
case AF_FORMAT_AC3:
case AF_FORMAT_S24_LE:
case AF_FORMAT_S16_LE:
- case AF_FORMAT_S8:
+ case AF_FORMAT_U8:
break;
default:
mp_msg(MSGT_AO, MSGL_V,"ao_dsound: format %s not supported defaulting to Signed 16-bit Little-Endian\n",af_fmt2str_short(format));
Index: libao2/ao_win32.c
===================================================================
--- libao2/ao_win32.c
+++ libao2/ao_win32.c
@@ -155,7 +155,7 @@
case AF_FORMAT_AC3:
case AF_FORMAT_S24_LE:
case AF_FORMAT_S16_LE:
- case AF_FORMAT_S8:
+ case AF_FORMAT_U8:
break;
default:
mp_msg(MSGT_AO, MSGL_V,"ao_win32: format %s not supported defaulting to Signed 16-bit Little-Endian\n",af_fmt2str_short(format));
Regards,
Zhou Zongyi, zhouzongyi at pset.suntec.net
2009-02-25
More information about the MPlayer-dev-eng
mailing list