From owner-freebsd-multimedia@FreeBSD.ORG Thu Jul 21 13:55:32 2005 Return-Path: X-Original-To: multimedia@freebsd.org 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 E3D3816A420; Thu, 21 Jul 2005 13:55:32 +0000 (GMT) (envelope-from zanchey@ucc.gu.uwa.edu.au) Received: from asclepius.uwa.edu.au (asclepius3.uwa.edu.au [130.95.128.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76EF743D5E; Thu, 21 Jul 2005 13:55:21 +0000 (GMT) (envelope-from zanchey@ucc.gu.uwa.edu.au) Received: from asclepius.kas (localhost.localdomain [127.0.0.1]) by asclepius.uwa.edu.au (Postfix) with SMTP id 91535183C26; Thu, 21 Jul 2005 21:55:14 +0800 (WST) Received: from asclepius (localhost.localdomain [127.0.0.1]) by asclepius.prekas (Postfix) with SMTP id 81871183C24; Thu, 21 Jul 2005 21:55:14 +0800 (WST) X-UWA-Client-IP: 130.95.13.9 (UWA) Received: from mooneye.ucc.gu.uwa.edu.au (mooneye.ucc.gu.uwa.edu.au [130.95.13.9]) by asclepius.input (Postfix) with ESMTP id 744DE183BAE; Thu, 21 Jul 2005 21:55:14 +0800 (WST) Received: by mooneye.ucc.gu.uwa.edu.au (Postfix, from userid 801) id 6FB2A17E74; Thu, 21 Jul 2005 21:55:14 +0800 (WST) Received: from mussel.ucc.gu.uwa.edu.au (mussel.ucc.gu.uwa.edu.au [130.95.13.18]) by mooneye.ucc.gu.uwa.edu.au (Postfix) with ESMTP id 3D08C17E71; Thu, 21 Jul 2005 21:55:14 +0800 (WST) Received: from zanchey (helo=localhost) by mussel.ucc.gu.uwa.edu.au with local-esmtp (Exim 3.36 #1 (Debian)) id 1DvbW6-0001EH-00; Thu, 21 Jul 2005 21:55:14 +0800 Date: Thu, 21 Jul 2005 21:55:14 +0800 (WST) From: David Adam To: Josef Karthauser In-Reply-To: <20050721134345.GQ73338@genius.pact.cpes.susx.ac.uk> Message-ID: References: <20050721134345.GQ73338@genius.pact.cpes.susx.ac.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SpamTest-Info: Profile: Formal (251/050713) X-SpamTest-Info: Profile: Detect Hard [UCS 290904] X-SpamTest-Info: Profile: SysLog X-SpamTest-Info: Profile: Marking Spam - Subject (UCS) [02-08-04] X-SpamTest-Status: Not detected X-SpamTest-Version: SMTP-Filter Version 2.0.0 [0125], KAS/Release Cc: stable@FreeBSD.org, multimedia@freebsd.org Subject: Re: Multiple consumers of /dev/dsp X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2005 13:55:33 -0000 Josef, On Thu, 21 Jul 2005, Josef Karthauser wrote: > In the past I'm sure that we supported the mixing of audio in the kernel > so that multiple applications could open /dev/dsp at the same time. Was > this a function of the audio card driver, or of the audio subsystem? > Currently on my new machine I don't get any mixing, and applications > fail to open /dev/dsp if it's already open by something. > > The current hardware is: > > FreeBSD Audio Driver (newpcm) > Installed devices: > pcm0: at io 0xee00, 0xe000 irq 9 bufsz 16384 kld > snd_ich (1p/1r/0v channels duplex default) > > Am I imagining that this use to the case or isn't it enabled by default? It's not on by default, AFAIK, but setting a couple of sysctls will allow you to have more than one program playing sound at once. # sysctl hw.snd.pcm0.vchans=4 # sysctl hw.snd.maxautovchans=4 Check out http://www.freebsd.org/doc/handbook/sound-setup.html#AEN8582 (the section titled 'Utilizing Multiple Sound Sources'). Cheers, David Adam zanchey@ucc.gu.uwa.edu.au