LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Sound - Cannot play from multiple programs (https://www.linuxquestions.org/questions/linux-software-2/sound-cannot-play-from-multiple-programs-549374/)

Kupo 04-26-2007 11:34 PM

Sound - Cannot play from multiple programs
 
Ive got a weird problem that with ALSA i cannot play from more than one program. after the first program has launched, ex XMMS, i can play fine, but as soon as i try playing any other type of sound media/file it fails.
im using Plantronics USB Gamecom Pro 1 headset with Mic
i also have built in audio on my motherboard which im not using
i ran the soundcard detection GUI in gnome and its using snd-usb-audio module, PCM Device set to USB Audio
any help with this issue would be appreciated

MasterC 04-27-2007 04:13 PM

Sounds like a hardware issue. You may be able to work around the problem with something like dmix in your .asoundrc file. An example (that probably won't work, but might) of this same issue overcome with dmix is here:
http://alsa.opensrc.org/Intel8x0

I'm not familiar enough with how your hardware works to provide you an exact example, but hopefully that website will get you in the right direction.

Good luck!

Cool

Kupo 04-27-2007 10:07 PM

how do you setup dmix? and is this a hardware problem or driver problem? i have the latest version of alsa and it says it has dmix pre-configured according to the ALSA wiki.

studioj 04-27-2007 10:19 PM

yes you are right ALSA says they have configured dmix BUT
given the numbers of people posting on the boards all of a suden about dmix not working properly
i have come to the conclusion that there is something dysfunctinal about the way their new dmix implementation is behaving (i thing) in relationship to certain apps or libraries. there (educated speculation) are timing issues with checking on devices causing dmix to fail.
The only thing i can think to do is just wait till they sort it out. I have noticed in their discusions that they are aware of problems. doesn't seem to be an easy way to override it or fix it on the user level right now.

Kupo 04-27-2007 11:19 PM

where do i find the dmix plugin for xmms?

Kupo 04-29-2007 11:56 PM

no one knows where? i cant find anywhere.. or is dmix included with the ALSA plugin with xmms?, also if this a known bug should i just wait for new version of alsa, or try to downgrade?

studioj 04-30-2007 02:13 AM

Quote:

Originally Posted by Kupo
how do you setup dmix? and is this a hardware problem or driver problem? i have the latest version of alsa and it says it has dmix pre-configured according to the ALSA wiki.

I tried to read a bit more about this -- it seems dmix messes up some usb devices so i'm not sure it's turned on by default -- so lets at least try turning it on ;-)

try this as your ~/.asoundrc file
Code:

pcm.!default
{
type plug
slave.pcm mixer
}

pcm.mixer
{
type dmix
ipc_key 1024
slave
{
pcm "hw:0,0"
period_time 0
}
}

ctl.mixer
{
type hw
card 0
}


Kupo 04-30-2007 02:38 AM

should i create as root or user?
edit: i created file as my user account, no change


All times are GMT -5. The time now is 09:22 AM.