wineoss mmap fail error message

Robert Reif reif at earthlink.net
Thu Aug 12 19:50:33 CDT 2004


I just got a new system running Fedora Core 2 and I now see
what people are saying about sound support.

This patch doesn't fix the problem but gives a possible solution.

If/when the config file goes away, where will we be able to
set [dsound] parameters?
-------------- next part --------------
Index: dlls/winmm/wineoss/audio.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/wineoss/audio.c,v
retrieving revision 1.138
diff -u -r1.138 audio.c
--- dlls/winmm/wineoss/audio.c	12 Aug 2004 19:52:49 -0000	1.138
+++ dlls/winmm/wineoss/audio.c	13 Aug 2004 00:30:27 -0000
@@ -1827,6 +1827,11 @@
 	return MMSYSERR_NOERROR;
     }
 
+    TRACE("OSS_OpenDevice requested this format: %ldx%dx%d\n",
+          lpDesc->lpFormat->nSamplesPerSec,
+          lpDesc->lpFormat->wBitsPerSample,
+          lpDesc->lpFormat->nChannels);
+
     wwo = &WOutDev[wDevID];
 
     if ((dwFlags & WAVE_DIRECTSOUND) &&
@@ -2573,7 +2578,8 @@
         dsdb->mapping = mmap(NULL, dsdb->maplen, PROT_WRITE, MAP_SHARED,
                              dsdb->fd, 0);
         if (dsdb->mapping == (LPBYTE)-1) {
-            TRACE("Could not map sound device for direct access (%s)\n", strerror(errno));
+            ERR("Could not map sound device for direct access (%s)\n", strerror(errno));
+            ERR("set \"HardwareAcceleration\" = \"Emulated\" in the [dsound] section of your config file\n");
             return DSERR_GENERIC;
         }
         TRACE("The sound device has been mapped for direct access at %p, size=%ld\n", dsdb->mapping, dsdb->maplen);


More information about the wine-patches mailing list