LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-01-2005, 11:19 PM   #1
slackwarefan
Member
 
Registered: Oct 2003
Location: Florida
Distribution: Slackware
Posts: 273

Rep: Reputation: 30
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.
 
Old 05-01-2005, 11:23 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

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

Dave
 
Old 05-03-2005, 09:19 PM   #3
slackwarefan
Member
 
Registered: Oct 2003
Location: Florida
Distribution: Slackware
Posts: 273

Original Poster
Rep: Reputation: 30
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?

Last edited by slackwarefan; 05-03-2005 at 09:37 PM.
 
Old 05-04-2005, 11:38 AM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
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
 
Old 05-05-2005, 11:03 PM   #5
slackwarefan
Member
 
Registered: Oct 2003
Location: Florida
Distribution: Slackware
Posts: 273

Original Poster
Rep: Reputation: 30
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?
 
Old 05-06-2005, 06:14 PM   #6
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
What happens when you run aplay with a .wav file on the command line? Do you get multiple instances?
 
Old 05-07-2005, 09:05 PM   #7
slackwarefan
Member
 
Registered: Oct 2003
Location: Florida
Distribution: Slackware
Posts: 273

Original Poster
Rep: Reputation: 30
No it doesn't create multiple instances when just running a wav file.
 
Old 05-08-2005, 06:09 PM   #8
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
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
 
Old 05-09-2005, 08:34 PM   #9
slackwarefan
Member
 
Registered: Oct 2003
Location: Florida
Distribution: Slackware
Posts: 273

Original Poster
Rep: Reputation: 30
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'

Last edited by slackwarefan; 05-09-2005 at 10:31 PM.
 
Old 05-10-2005, 11:45 AM   #10
mhearn
Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 47
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.
 
Old 05-15-2005, 12:21 AM   #11
slackwarefan
Member
 
Registered: Oct 2003
Location: Florida
Distribution: Slackware
Posts: 273

Original Poster
Rep: Reputation: 30
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?
 
Old 05-15-2005, 02:13 PM   #12
mhearn
Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 47
You need to upgrade your distro, really. There is info on upgrading ALSA manually on the official ALSA site and wiki.
 
Old 05-29-2005, 12:08 AM   #13
slackwarefan
Member
 
Registered: Oct 2003
Location: Florida
Distribution: Slackware
Posts: 273

Original Poster
Rep: Reputation: 30
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
 
Old 12-27-2006, 11:34 AM   #14
wtn2die
LQ Newbie
 
Registered: May 2006
Distribution: Debian
Posts: 13

Rep: Reputation: 0
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where to download precompiled bash binaries, such as "time" and "top"? elinuxqs Linux - Newbie 12 11-14-2005 08:36 PM
Getting error: "ALSA device "default" is already in use by another program." brynjarh Debian 7 02-04-2005 11:45 AM
Lost DHCP Lease when putting computer in "Standby" mode for a "long" time pnellesen Linux - Networking 1 01-06-2005 11:44 PM
Sound device "doesn't exist" after program crash oot Linux - General 2 07-30-2004 11:47 PM
ALSA error: ALSA device "default" is already in use by another program. darkleaf Linux - Software 2 07-20-2004 04:34 PM


All times are GMT -5. The time now is 03:38 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration