You are not logged in.
My sound is working fine under alsa, except for one thing. I cannot have two applications use the sound card at the same time. I know that this issue is addressed in the wiki entry for alsa, but it is a problem with pulse audio, and I do not have pulse installed. If I have a program running that uses the sound card, even if it is not playing sound, then it will say that the device is busy. Is this a problem with alsa or something. I would post configs and stuff, but it is all pretty standard.
I am on a Samsung laptop with an A4 chip from AMD. the model number is NP305E7A-A03US I am not exactly a beginner, but I had no where else to go with this. Its probably a pretty stupid question. If anyone needs any more info just let me know. I would give the card model, but I honestly cannot decern anything from the names given by the various grep commands and stuff, as they were all very arbitrary. I do not have time to make a full post, so if anyone has any possibilty of an answer before tomorrow, then I will come back with more info.
Last edited by agahnim (2013-11-11 13:35:00)
Offline
yes, ALSA does not natively support application mixing. that's why PulseAudio gained prevalence
(personally, I prefer OSS4, but that's just me)
Offline
Offline
yes, Dmix does mixing, but it's a plugin and can be a pain to set up
Offline
While it's a plugin, it is included in ALSA and should work by default (http://alsa.opensrc.org/Dmix). However, getting it working WELL is another story (and the reason I now use pulsaudio).
Offline
So the moral of this story is to set up pulse audio. Okay thanks guys I will work on it when I have time. I feel kinda silly now though, as I had figured it was something to do with alsa and not an actual problem. I am using BSPWM by the way and it is fantastic. Everything else has worked so smoothly, and I was just concerned about this one little problem. I will be doing a little research and setting pulse up once I have a little free time. Thanks a lot, and if you have an suggestions let me know. ![]()
Offline
About alsa dmix, and for the record:
On an Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz, the following are my finding about
quality/cpu when mixing two streams at 44khz:
a snippet from my .asoundrc
#converter "samplerate_best" # perfect: 16%cpu, maybe overkill
#converter "samplerate_medium" # almost perfect: 6%cpu
#converter "samplerate" # good: 4%cpu, definitely usable
#converter "samplerate_linear" # bad: 2%cpu, way better than default wine resampler
#converter "samplerate_order" # very bad: 2%cpu, like the default wine resamplerHere is the reference topic: https://bbs.archlinux.org/viewtopic.php?pid=942724
I may be wrong, but in an opensource world (code reusing), i really doubt pulseaudio could lead to better quality/cpuuse tradeoff.
Pulseaudio, being just another layer atop of alsa, could only lead to higher cpu usage.
Last edited by kokoko3k (2013-11-11 15:33:41)
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
See ALSA config in my sig.
Offline
@brebs you are a lifesaver. I have seen your signature before, but never decided to click on it. It is a little cpu heavy, but it works. I do not intent to actually play sound out of more than one application at once, but this saves me from having to close cmus to be able to have sound in firefox or vice versa. It is troublesome to have to kill skype before I can listen to music if I happened to open skype first lol. Thanks a lot.
Offline
It is a little cpu heavy
Then use format S16_LE rather than S32_LE
I might as well change that default again.
Offline
@ brebs Might I ask what that setting entails exactly, as I have no idea what the difference will be. I am willing to deal with a little cpu usage for better quality, but I really do not know what that does so I left it alone.
Last edited by agahnim (2013-11-13 02:22:29)
Offline