delphij's Chaos

选择chaos这个词是因为~~实在很难找到一个更合适的词来形容这儿了……

16 Aug 2005

How to make FreeBSD to permit several programs to play sound simutiously?

You may have noticed that FreeBSD by default does not allow many programs to play sound at same time. For instance, you generally can not hear GAIM sound when you are hearing MP3.

Fortunately, this can be resolved if you have read the documentations. Now I write here so you can also Google it :-)

Add a single line into /etc/sysctl.conf:

hw.snd.pcm0.vchans=16

Then, reboot (or if you are careful enough, shut down all programs that is using sound subsystem, then run /etc/rc.d/sysctl restart)

Now the sound should work like what is found under Windows :-)