[MPlayer-cvslog] r28850 - in trunk/libao2: ao_dsound.c ao_win32.c

reimar subversion at mplayerhq.hu
Fri Mar 6 14:22:49 CET 2009


Author: reimar
Date: Fri Mar  6 14:22:48 2009
New Revision: 28850

Log:
The 8 bit per sample formats are unsigned on Windows, fixes playback with
-af format=s8 for -ao dsound and -ao win32.
Patch by Zhou Zongyi [zhouzongyi (at) pset suntec net]

Modified:
   trunk/libao2/ao_dsound.c
   trunk/libao2/ao_win32.c

Modified: trunk/libao2/ao_dsound.c
==============================================================================
--- trunk/libao2/ao_dsound.c	Fri Mar  6 13:56:13 2009	(r28849)
+++ trunk/libao2/ao_dsound.c	Fri Mar  6 14:22:48 2009	(r28850)
@@ -431,7 +431,7 @@ static int init(int rate, int channels, 
 		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));

Modified: trunk/libao2/ao_win32.c
==============================================================================
--- trunk/libao2/ao_win32.c	Fri Mar  6 13:56:13 2009	(r28849)
+++ trunk/libao2/ao_win32.c	Fri Mar  6 14:22:48 2009	(r28850)
@@ -155,7 +155,7 @@ static int init(int rate,int channels,in
 		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));



More information about the MPlayer-cvslog mailing list