LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-20-2004, 01:07 PM   #1
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
ALSA error: ALSA device "default" is already in use by another program.


I tested my sound with a CD and now I get this or a similar error in any program but Gnome-CD. The error ALSA device "default" is already in use by another program. is from rhythmbox but I can't get any other media plyers working (like noatum kadooble etc)

after this errror I get the error cannot pause playback

Last edited by darkleaf; 07-20-2004 at 01:08 PM.
 
Old 07-20-2004, 03:30 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
the way to solve the error you've given is to edit the alsa configuration to allow multiple connections by external programs. I thought this had become a default on newer distro's but maybe not.

open the alsa config file, possibly /etc/asound.conf or similar. and in there should be a declaration o this "default" server. This might not be quite right for you, so google could help you with some alternative configurations, but my setup is:

Code:
pcm.default {
   type plug
   slave.pcm "dmixer"
}       

pcm.dmixer {  
    type dmix
    ipc_key 1024
    ipc_perm 0666
    slave {
        pcm "hw:0,0"
        period_time 0
        period_size 1024
        buffer_size 8192
   rate 44100
    }  
    
    bindings {
        0 0
        1 1
    }
}
to be honest, i don't understand each part, and from what i read this is actually overkill... you *might* not even need the second part at all and let dmixer run on what i expect are suitable default settings, but essentially it's the use of the "dmixer" plugin.

BUT... if you're using kde or gnome, you'll probably have a higer level sound server running already on top of alsa, and although they suck, it might be easier to make sue you've tried using both ESD and ARTS outputs instead of alsa.
 
Old 07-20-2004, 04:34 PM   #3
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Original Poster
Rep: Reputation: 45
OK I'll try that as well. Maybe it'll go better with reinstalling since I've been playing with 3 desktop managers and in the process something went wrong. Thanks for the help!
 
  


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
ALSA "locks" sound only one program at a time slackwarefan Linux - Software 13 12-27-2006 11:34 AM
Only root hears sounds, alsa gives "permission denied" Baix Linux - General 4 07-02-2005 01:30 PM
Getting error: "ALSA device "default" is already in use by another program." brynjarh Debian 7 02-04-2005 11:45 AM
ALSA on Sarge - "No such device" problem goozlq Debian 10 12-31-2004 12:42 PM
default alsa device? tw001_tw Slackware 3 10-21-2004 11:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:49 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration