PATCH: dlls/winmm/wineoss/audio.c portability fix
Gerald Pfeifer
gerald at pfeifer.com
Sat Feb 7 04:41:48 CST 2004
Revision 1.112 of dlls/winmm/wineoss/audio.c
date: 2004/02/06 05:20:14; author: julliard; state: Exp; lines: +26 -1
Robert Reif <reif at earthlink.net>
Show sound card info in trace.
breaks the build on FreeBSD 4.x:
audio.c: In function `OSS_WaveOutInit':
audio.c:617: error: `DSP_CAP_BIND' undeclared (first use in this function)
The following patch addresses this.
Gerald
ChangeLog:
Account for DSP_CAP_BIND not being defined on all platforms.
Index: audio.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/wineoss/audio.c,v
retrieving revision 1.112
diff -u -3 -p -r1.112 audio.c
--- audio.c 6 Feb 2004 05:20:14 -0000 1.112
+++ audio.c 7 Feb 2004 10:39:04 -0000
@@ -614,7 +614,9 @@ static BOOL OSS_WaveOutInit(OSS_DEVICE*
#ifdef DSP_CAP_MULTI
TRACE("\tMulti: %s\n", oss_caps & DSP_CAP_MULTI ? "true" : "false");
#endif
+#ifdef DSP_CAP_BIND
TRACE("\tBind: %s\n", oss_caps & DSP_CAP_BIND ? "true" : "false");
+#endif
}
/* We must first set the format and the stereo mode as some sound cards
More information about the wine-patches
mailing list