From b96c82c80a3f3ec857a93da0bf00cfdcf05652fd Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Sun, 28 Dec 2003 13:16:21 +0000 Subject: Get sound working by ignoring errors from our dummy SOUND_MIXER_INFO ioctl. Bump PORTREVISION. Reported by: Travis Poppe Tested by: Travis Poppe Discussed with: matk --- .../wine/files/patch-dlls::winmm::wineoss::audio.c | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 emulators/wine/files/patch-dlls::winmm::wineoss::audio.c (limited to 'emulators/wine/files/patch-dlls::winmm::wineoss::audio.c') diff --git a/emulators/wine/files/patch-dlls::winmm::wineoss::audio.c b/emulators/wine/files/patch-dlls::winmm::wineoss::audio.c new file mode 100644 index 000000000000..cb6a286c8700 --- /dev/null +++ b/emulators/wine/files/patch-dlls::winmm::wineoss::audio.c @@ -0,0 +1,24 @@ +Index: dlls/winmm/wineoss/audio.c +=================================================================== +RCS file: /home/wine/wine/dlls/winmm/wineoss/audio.c,v +retrieving revision 1.108 +diff -u -3 -p -r1.108 audio.c +--- dlls/winmm/wineoss/audio.c 12 Dec 2003 05:55:26 -0000 1.108 ++++ dlls/winmm/wineoss/audio.c 28 Dec 2003 12:46:50 -0000 +@@ -544,10 +544,15 @@ static BOOL OSS_WaveOutInit(OSS_DEVICE* + strncpy(ossdev->out_caps.szPname, info.name, sizeof(info.name)); + TRACE("%s\n", ossdev->ds_desc.szDesc); + } else { +- ERR("%s: can't read info!\n", ossdev->mixer_name); ++ ERR("%s: cannot read SOUND_MIXER_INFO!\n", ossdev->mixer_name); ++#ifndef __FreeBSD__ ++ /* FreeBSD up to at least 5.2 provides this ioctl, but does ++ * implement it properly, so ignore errors on that platform. ++ */ + OSS_CloseDevice(ossdev); + close(mixer); + return FALSE; ++#endif + } + } else { + ERR("%s: %s\n", ossdev->mixer_name , strerror( errno )); -- cgit v1.2.3