Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jul 2005 21:55:14 +0800 (WST)
From:      David Adam <zanchey@ucc.gu.uwa.edu.au>
To:        Josef Karthauser <joe@FreeBSD.org>
Cc:        stable@FreeBSD.org, multimedia@freebsd.org
Subject:   Re: Multiple consumers of /dev/dsp
Message-ID:  <Pine.LNX.4.58.0507212152150.2843@mussel.ucc.gu.uwa.edu.au>
In-Reply-To: <20050721134345.GQ73338@genius.pact.cpes.susx.ac.uk>
References:  <20050721134345.GQ73338@genius.pact.cpes.susx.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <Intel ICH4 (82801DB)> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.58.0507212152150.2843>