How to make ALSA-only applications output sound when using OSS 4 drivers · My Notes

How to make ALSA-only applications output sound when using OSS 4 without any additional wrapper libraries? Here's a very useful hint I found here:
http://insanecoding.blogspot.com/2009/05/perfect-sound-with-oss-version-4.html

·· [Continuing] ··

Get root rights and create /etc/asound.conf with contents like this:

pcm.!default {
    type oss
    device /dev/dsp
}

ctl.!default {
    type oss
    device /dev/mixer
}

Then try it with something like: $ mplayer somemusic.mp3 -ao alsa
And voila, it works perfectly straight away!!

The thing is that most of the applications use ALSA library which in addition to "normal" ALSA driver interface also contains OSS output module as well and so in fact it already has the ability to play sound via OSS; the config file just tells it to go that way.

P.S. I find OSS 4 to be far, far better than ALSA both for my M-Audio Audiophile 192 and for my HD Audio codec. It really rocks with the only minor issue: complex looking and hard to use mixer window for HD Codec (but it allows to setup anything in the hardware). I wish OSS good luck in returning to Linux kernel.




Comments:

No Comments for this post yet...

Leave a comment:

Your email address will not be displayed on this site.
Your URL will not be displayed on this site. Comments containing URL's of non-personal pages may be removed.
Confirmation Code:
Human Confirmation Code (Captcha)

HTML tags and "<", ">" symbols are not allowed. Links will not be converted to hyperlinks. Any commercials are removed and reported as abuse.

Archives

                                                                                                                                                                                                                                                                   


© Sergey A. Galin, 1998-2004 http://sageshome.net/b2e/blogs/