From owner-freebsd-hackers Mon Sep 3 23:57:45 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from harrier.mail.pas.earthlink.net (harrier.mail.pas.earthlink.net [207.217.121.12]) by hub.freebsd.org (Postfix) with ESMTP id 5568337B406 for ; Mon, 3 Sep 2001 23:57:39 -0700 (PDT) Received: from mindspring.com (dialup-209.247.140.38.Dial1.SanJose1.Level3.net [209.247.140.38]) by harrier.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id XAA07265; Mon, 3 Sep 2001 23:57:35 -0700 (PDT) Message-ID: <3B947B8B.54D0ED7A@mindspring.com> Date: Mon, 03 Sep 2001 23:58:19 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Faried Nawaz Cc: freebsd-hackers@freebsd.org Subject: Re: .so and threads, and stereo /dev/dsp, freebsd 4.3-stable. References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Faried Nawaz wrote: > Next: the OSS plugin builds but doesn't seem to work properly. At > some point, it tries to set /dev/dsp to stereo, and fails: > > tmp = 0; > if (shm->channels == 2) > tmp = 1; > rc = ioctl (audio_fd, SNDCTL_DSP_STEREO, &tmp); > if (rc < 0) { > perror (snd_dev); > Con_Printf ("Could not set %s to stereo=%d", snd_dev, shm->chann > els); > close (audio_fd); > return 0; > } > > I have a Creative 128 card which identifies itself as > > pcm0: port 0x6800-0x683f irq 10 at device 10.0 on pci0 > > What can I do here to make quakeforge use the sound card? I've seen something like this before. The cause was the sourd card being opened twice, and the second open failing, without the programmer checking the open return code in the second case. The fix was to use the already open fd, instead of reopening the card. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message