Audio only with one program - asoundrc's "opaqueness"
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Audio only with one program - asoundrc's "opaqueness"
Ok, I can only get sound with one program at a time. Either amarok or firefox or whatever, but not at the same time. It's rather irritating to have to close half my apps trying to figure out which is causing it or not. I have attempted to create an .asoundrc file, but have been unsuccessful as all the guides I have found for it are very opaque and it seems they are intended to use .asoundrc for other purposes.
My question is, is there a guide that explains how to route sound to the sound card to allow more than one application to use it at the same time?
Does it still happen if you don't use KDE or any KDE apps?
Well, the issue really only came up when I started playing Return to Castle Wolfenstein. I don't really know what happened. Maybe something about this command: "echo 'wolfsp.x86 0 0 direct' > /proc/asound/card0/pcm0p/oss"? Also, virtual box has never reliably outputted sound. It has at times, but I never really bothered to diagnose it as I only use it for one app that doesn't need sound.
Anyone know where I can find a 64 bit Pulse Audio slackware package? I suppose I'll attempt compiling it. I've tried in the past, but it has so many deps that either it doesn't work or I just give up in exhaustion from installing dep after dep.
You are using OSS (or ALSA's OSS compatibility) for Return to Castle Wolfenstein. This locks up the sound card and you will not be able to play other sound...it is preferable to use alsa for everything if possible. If you can get your game to output to alsa then the problem will likely be solved, but if not you may need to direct output to a sound server (which in turn outputs to alsa). My favourite was actually arts but I don't think that's too relevant anymore, and I don't know anything about phonon in KDE4. pulse will probably work...I just don't particularly like it myself. This page suggests a possible hack...but I can't vouche for it, not having played the game myself.
Summary: all you should have to do is make sure every app is playing sound through ALSA and not OSS.
Hmm... Yea, it seems wolfenstein wants to use /dev/dsp which if I'm not mistaken what oss uses and alsa doesn't. I tried changing to /dev/snd/pcmC0D0p, since that's what amarok seems to use, but no luck.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.