From owner-freebsd-multimedia@FreeBSD.ORG Sat Dec 27 12:00:21 2003 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D722B16A4CE for ; Sat, 27 Dec 2003 12:00:21 -0800 (PST) Received: from hak.cnd.mcgill.ca (hak.cnd.mcgill.ca [132.216.11.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53D9443D48 for ; Sat, 27 Dec 2003 12:00:20 -0800 (PST) (envelope-from mat@hak.cnd.mcgill.ca) Received: from hak.cnd.mcgill.ca (localhost [127.0.0.1]) by hak.cnd.mcgill.ca (8.12.9/8.12.8) with ESMTP id hBRJv815061431; Sat, 27 Dec 2003 14:57:08 -0500 (EST) (envelope-from mat@hak.cnd.mcgill.ca) Received: (from mat@localhost) by hak.cnd.mcgill.ca (8.12.9/8.12.8/Submit) id hBRJv8h2061430; Sat, 27 Dec 2003 14:57:08 -0500 (EST) Date: Sat, 27 Dec 2003 14:57:08 -0500 From: Mathew Kanner To: Travis Poppe Message-ID: <20031227195708.GH20827@cnd.mcgill.ca> References: <20031225113147.3e182c59.tlp@LiquidX.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031225113147.3e182c59.tlp@LiquidX.org> User-Agent: Mutt/1.4.1i Organization: I speak for myself, operating in Montreal, CANADA X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on hak.cnd.mcgill.ca cc: multimedia@freebsd.org Subject: Re: The latest WINE and /dev/mixer* X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Dec 2003 20:00:22 -0000 On Dec 25, Travis Poppe wrote: > Greetings. > > I've recently been playing Max Payne on FreeBSD 5.2-RC with the latest WINE (works like a charm, very minor glitches.) > > However, sound does not work, nor does it work on any other game I've tried. WINE spits out this message, and I believe this has something to do with why sound doesn't work: > > err:wave:OSS_WaveOutInit /dev/mixer0: can't read info! > err:wave:OSS_WaveOutInit /dev/mixer1: can't read info! > err:wave:OSS_WaveInInit /dev/mixer0: can't read info! > err:wave:OSS_WaveInInit /dev/mixer1: can't read info! > > I actually hacked some of the code to get it to point to /dev/mixer0 instead of /dev/mixer, which didn't help, anyway. > > My permissions are good to go as well. > > Any ideas? Travis, A brief look at the wine source shows that they are relying on the SOUND_MIXER_INFO ioctl if defined. We define it but we don't support it, they could change their source to make it a non-fatal error. We can't easily implement the ioctl because we don't carry specific device string info with the mixer device. (nor any of the other fields in the struct mixer_info) An easy hack would be to #undef SOUND_MIXER_INFO at the top of wine/dlls/winmm/wineoss/audio.c (but after the includes) Good luck, and if it works, please submit a PR with the patch for the wine port. thanks, --Mat -- Applicants must also have extensive knowledge of UNIX, although they should have sufficiently good programming taste to not consider this an achievement. - MIT AI Lab job ad in the /Boston Globe/