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: 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 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. Archives
|