changeset 28815:ce24a9f06ccb

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]
author reimar
date Fri, 06 Mar 2009 13:22:48 +0000
parents aa16560de0e7
children 6e5b9867646c
files libao2/ao_dsound.c libao2/ao_win32.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_dsound.c	Fri Mar 06 12:56:13 2009 +0000
+++ b/libao2/ao_dsound.c	Fri Mar 06 13:22:48 2009 +0000
@@ -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));
--- a/libao2/ao_win32.c	Fri Mar 06 12:56:13 2009 +0000
+++ b/libao2/ao_win32.c	Fri Mar 06 13:22:48 2009 +0000
@@ -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));