Stop Microsoft

Operating Systems => Linux and UNIX => Topic started by: udaki on 23 January 2005, 19:51

Title: Utilizing Multiple Sound Sources
Post by: udaki on 23 January 2005, 19:51
7.2.3 Utilizing Multiple Sound Sources
Contributed by Munish Chopra.

It is often desirable to have multiple sources of sound that are able to play simultaneously, such as when esound or artsd do not support sharing of the sound device with a certain application.

FreeBSD lets you do this through Virtual Sound Channels, which can be set with the sysctl(8) facility. Virtual channels allow you to multiplex your sound card's playback channels by mixing sound in the kernel.

To set the number of virtual channels, there are two sysctl knobs which, if you are the root user, can be set like this:

# sysctl hw.snd.pcm0.vchans=4
# sysctl hw.snd.maxautovchans=4

ripped off from freebsd handbook.Is there anyways to do this in linux.Im tired of not hearing multiple sound channel.I tried looking in /proc for the kernel parameters but dont know what it is.
Title: Utilizing Multiple Sound Sources
Post by: Refalm on 24 January 2005, 13:58
My nforce driver does this automatically, so I have no idea :\
Title: Utilizing Multiple Sound Sources
Post by: KernelPanic on 24 January 2005, 19:31
http://www.alsa-project.org/alsa-doc/doc-php/asoundrc.php?module=Generic#softmix (http://www.alsa-project.org/alsa-doc/doc-php/asoundrc.php?module=Generic#softmix)

semi-solution
Title: Utilizing Multiple Sound Sources
Post by: WMD on 25 January 2005, 01:54
quote:
Originally posted by Tux:
http://www.alsa-project.org/alsa-doc/doc-php/asoundrc.php?module=Generic#softmix (http://www.alsa-project.org/alsa-doc/doc-php/asoundrc.php?module=Generic#softmix)

semi-solution


That's what I'm doing.  Works pretty well.