From owner-freebsd-questions Tue Oct 16 16:21:53 2001 Delivered-To: freebsd-questions@freebsd.org Received: from spatula.dyn.dhs.org (h24-78-81-197.vc.shawcable.net [24.78.81.197]) by hub.freebsd.org (Postfix) with SMTP id 4F55C37B401 for ; Tue, 16 Oct 2001 16:21:50 -0700 (PDT) Received: (qmail 10626 invoked by uid 1000); 17 Oct 2001 00:01:25 -0000 From: lyonsm@NETBISTRO.COM Date: 16 Oct 2001 17:01:25 -0700 Date: Tue, 16 Oct 2001 17:01:25 -0700 (PDT) X-Sender: lyonsm@spatula.dyn.dhs.org Reply-To: lyonsm@netbistro.com To: freebsd-questions@freebsd.org Subject: Compaq sound sampling rate Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, For the past couple of months I've been trying to track down a problem with sound playback on my workstation, which is a Compaq Deskpro EN whose audio hardware probes as pcm0: port 0x2400-0x243f,0x2000-0x20ff irq 11 at device 31.5 on pci0 Kernel config is more-or-less GENERIC with three lines added to the end: device pcm device csa device sbc OS version is 4.4-STABLE, last cvsupped and rebuilt on Oct 9th. The problem I am experiencing is that audio playback seems to use the wrong sampling rate, sounding like 48000 Hz when it thinks it's playing back at 44100 Hz. A search of the archives revealed some discussion of cheap motherboard sound devices that are only capable of playing at 48000 Hz. The suggested workaround was to use a user-mode mixer process to resample the audio. Strangely, though, the mixers I have tried (artsd, esound, playwave, and play) play back at the wrong rate regardless of the rate they are told to use: when told to play at 48000 Hz they claim they are doing so but the audio still sounds like a 44.1 kHz stream played at 48 kHz. The same thing happens when the mixers are told to play at 44.1 kHz (and again claim to be doing so). Suspecting the kernel might be lying to the applications about what sampling rates are in use I modified a copy of esound to ask the kernel for 44100 Hz but otherwise act as though it had asked for 48000 Hz. This seems to have worked around the problem for now, but leaves me unsatisfied -- surely this shouldn't be necessary. I'm pretty much stumped at this point. Has anyone else seen this? Is there some other knob in the kernel config I should have adjusted? Thanks in advance for any clues! -m To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message