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.
Hello I've been having a sound problem since I installed Slackware 14 x64 that I have not found a solution for after scouring the web and I was hope someone could help me. My sound device is onboard ALC888 that reports as Intel HDA in in kmix and alsamix. My problem is that without some code that I added to .asoundrc in my home directory I cannot get sound to play back on multiple programs at the same time (i.e. playing youtube video while playing vlc while using painobar etc...). In fact I cant even play pianobar and watch youtube at the same time with out that script because when one is playing the other reports a device or resource busy. Now with the code in the script first off my kmix crashes and wont load. Also my wine games wont load at all and steam games wont load. If I disable the script and logout and login again steam games play but I get skipping audio and buffer overflow errors reported in terminal from steam. So I'm at a loss its either load the script and kmix crashes and I cant play any games... boohoo you poor boy lol, or I dont and games work except tf2 in steam witch gives me buffer overflow errors from the soundcard and audio skips, and if I play youtube in ff then try to play vlc player or pianobar they report device busy and dont playback.
To get software mixing that always works, all I do is edit /etc/rc.d/rc.alsa and comment out the load_alsa_oss_modules lines. That will prevent anything from running in OSS Emulation mode. Anything running in OSS emulation mode would get exclusive use of the sound card and block everything else from using it. Anything not running in OSS emulation mode gets software mixing, and that's been true for quite a few years.
Thank you, Dugan! I'm still learning Slackware obviously and I appreciate you taking the time to answer my question. Now that my sound works perfectly for everything including TF2 in Steam ... I am working on optimizing my Slackware machine for optimal performance (which I now realize I should have considered the first steps of optimization before installing! XD ). This will just give me a chance to practice backing up my system. Anyway, your solution solved all my audio problems! Thanks.
To get software mixing that always works, all I do is edit /etc/rc.d/rc.alsa and comment out the load_alsa_oss_modules lines. That will prevent anything from running in OSS Emulation mode. Anything running in OSS emulation mode would get exclusive use of the sound card and block everything else from using it. Anything not running in OSS emulation mode gets software mixing, and that's been true for quite a few years.
I'm using Slackware, and I commented out all instances of load_alsa_oss_modules and this in rc.alsa:
Code:
# A function to load the ALSA OSS compat modules:
# load_alsa_oss_modules() {
# if modprobe -c | tr _ - | grep -wq snd-pcm-oss ; then
# if ! cat /proc/modules | tr _ - | grep -wq snd-pcm-oss ; then
# echo "Loading OSS compatibility modules for ALSA."
# modprobe snd-pcm-oss
# modprobe snd-seq-oss
# modprobe snd-mixer-oss
# fi
# fi
# }
Yet, I still can't mix multiple applications' sound together. (I've rebooted and everything.)
E.g., if I try playing audio in two difference instances of VLC, VLC gives me an error about how the "default" audio device cannot be used because the device or resource is busy.
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928
Rep:
Quote:
Originally Posted by Geremia
Yet, I still can't mix multiple applications' sound together. (I've rebooted and everything.)
I was having the same problem.
Be sure you've selected "default" on VLC audio out configuration (or "alsa" in SMPlayer).
My other problem was that I have this in "~/.asoundrc", this is for equalization launched by "alsamixer -D equal"
Code:
ctl.equal {
type equal;
}
pcm.plugequal {
type equal;
# Modify the line below if you don't
# want to use sound card 0.
slave.pcm "plughw:0,0";
# or if you want to use with multiple applications output to dmix
slave.pcm "plug:dmix"
}
#pcm.equal {
# Or if you want the equalizer to be your
# default soundcard uncomment the following
# line and comment the above line.
pcm.!default {
type plug;
slave.pcm plugequal;
}
The line "slave.pcm "plug:dmix"" was commented, preventing two streams at the same time.
I would like to say thank you to dugan for the helpful post
Wow, I have to give thanks to dugan and the OP for this thread. Didn't know it was so simple to get mixing to work as I have always had a pretty lengthy .asoundrc to force things. Good to know!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.