Author Topic: Utilizing Multiple Sound Sources  (Read 1022 times)

udaki

  • Member
  • **
  • Posts: 41
  • Kudos: 0
Utilizing Multiple Sound Sources
« 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.

Refalm

  • Administrator
  • Member
  • ***
  • Posts: 5,183
  • Kudos: 704
  • Sjembek!
    • RADIOKNOP
Utilizing Multiple Sound Sources
« Reply #1 on: 24 January 2005, 13:58 »
My nforce driver does this automatically, so I have no idea :\

KernelPanic

  • VIP
  • Member
  • ***
  • Posts: 1,878
  • Kudos: 222
Contains scenes of mild peril.

WMD

  • Global Moderator
  • Member
  • ***
  • Posts: 2,525
  • Kudos: 391
    • http://www.dognoodle99.cjb.net
Utilizing Multiple Sound Sources
« Reply #3 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

semi-solution


That's what I'm doing.  Works pretty well.
My BSOD gallery
"Yes there's nothing wrong with going around being rude and selfish, killing people and fucking married women, but being childish is a cardinal sin around these parts." -Aloone_Jonez