LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ALSA "locks" sound only one program at a time (https://www.linuxquestions.org/questions/linux-software-2/alsa-locks-sound-only-one-program-at-a-time-319222/)

slackwarefan 05-01-2005 11:19 PM

ALSA "locks" sound only one program at a time
 
ALSA "locks up" the soundcard, so only one program can use the soundcard at a time. I can't listen to music and use GAIM at the same time. What happens is, the music keeps playing untill the end of the song then I get a series of queued beeps from ALSA, then the music begins again.

How can I fix this?

I'm sorry if this has been asked before. I searched, but I didn't quite know what to search for.

ilikejam 05-01-2005 11:23 PM

Hi.

Have a look here:
http://www.linuxquestions.org/questi...48#post1614348

Dave

slackwarefan 05-03-2005 09:19 PM

Thank you!

EDIT: er, appearently it's caused some problems with xmms. It'll just stop playing a song right in the middle. It stops at the same place every time, and it doesn't stop with OSS, but then I can't hear GAIM. :( what do I do?

ilikejam 05-04-2005 11:38 AM

Hmmm.

Have you tried the latest version of XMMS? I'm using XMMS, GAIM and this ALSA config, and I've never had a problem. What sound card are you using?

Dave

slackwarefan 05-05-2005 11:03 PM

I'm using a built in CMI-8738-MX chipset.

I've found that the problem, which eventually leads to me not being able to use sound at all, is aplay having about a hundred instances running at once. All my sound issues cleared up when I ran killall aplay, but that only works untill it starts running multiple instances of itself again.

Why would this happen?

ilikejam 05-06-2005 06:14 PM

What happens when you run aplay with a .wav file on the command line? Do you get multiple instances?

slackwarefan 05-07-2005 09:05 PM

No it doesn't create multiple instances when just running a wav file.

ilikejam 05-08-2005 06:09 PM

What do you have in the command box in the GAIM preferences? The reason I ask is that if 'aplay' is run without a file argument, it stays running doing nothing, which looks like what's happening to you.

Dave

slackwarefan 05-09-2005 08:34 PM

Yes, that is what's happening. Why is that bad? What should I be doing?

Edit: oh, I understand. I don't know why gaim would call it and not play a sound. but in the box for gaim, I've got the command 'aplay'

mhearn 05-10-2005 11:45 AM

This is a known bug in the version of dmix you're using. I have the same problem. Upgrading alsalib is likely to fix it - unfortunately dmix has been unstable until very recently and tends to deadlock the audio pipeline etc.

slackwarefan 05-15-2005 12:21 AM

It seems I can't upgrade alsalib, I've got ALSA compiled into the kernel, and when I try to compile alsalib, it says I need alsa-driver, and when I run ./configure for that, it says I can't use the version compiled into the kernel. Any way around this?

mhearn 05-15-2005 02:13 PM

You need to upgrade your distro, really. There is info on upgrading ALSA manually on the official ALSA site and wiki.

slackwarefan 05-29-2005 12:08 AM

I've found out what caused the problem.

I did upgrade the kernel, but sadly, I found that sound would still stop in xmms at some point in a song. So I decided to look around the xmms options.
When using ALSA, there's an option to use Mmap mode. I had this checked. When I unchecked it, everything worked fine. So, what exactly is Mmap mode? I assume it means Memory Map Mode, but what exactly would that be?

-thanks :)

wtn2die 12-27-2006 11:34 AM

I had the same problem, and really seems to be XMMS.
I made this configuration:

Quote:

Output Plugin: Alsa
In the configuration above:

Audio Device: default
Mixer: Master
And everything got good.
With 4, 5 and 6 sound instances.

Bye!


All times are GMT -5. The time now is 06:53 PM.