LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 09-07-2008, 12:55 PM   #1
PsyPeng
LQ Newbie
 
Registered: Jan 2007
Location: Antwerp, Belgium, Europe, Earth, solar system, galaxy, this dimension, this reality
Distribution: Ubuntu
Posts: 10

Rep: Reputation: 0
Thumbs down Only one program can use audio at the same time.


[Removed by user]

Last edited by PsyPeng; 04-20-2012 at 11:17 AM.
 
Old 09-07-2008, 03:15 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,049

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Your problem is probably some app using OSS instead of ALSA for sound output. OSS can only be used by one app at a time, and it locks.

Solutions: you could recompile your kernel without any OSS support at all. You could as well configure your applications to use ALSA always. Another option is to use a sound server in the middle, like esound or arts, but not all applications can do that, and if an OSS based app starts first, it will lock the device for the rest, no matter what they are using.

It's for sure a distro specific problem. Modern distros shouldn't have this kind of problems. Right now ALSA uses dmix by default, which should take care of the mixing of many simultaneous sources, even if your sound card doesn't do it via hardware.
 
Old 09-08-2008, 04:13 PM   #3
oldtincup
LQ Newbie
 
Registered: Mar 2006
Posts: 11

Rep: Reputation: 1
Ubuntu has been using PulseAudio since 8.04. Check out Ubuntu forums, there are several threads on this.

From what I understand many programs can be made to work with the proper configuration. Audacity is one program that just doesn't like PulseAudio and can only be made to work as the only program using audio.
 
Old 09-08-2008, 04:27 PM   #4
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
You should have asked a long time ago; sound has worked fine in Linux for several years.

As the others have said, you probably have a configuration that is using OSS. Go to pulseaudio if you can get it working. Personally I have had problems with pulseaudio, so I continue to use Alsa.
 
Old 09-08-2008, 04:30 PM   #5
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by oldtincup View Post
Ubuntu has been using PulseAudio since 8.04. Check out Ubuntu forums, there are several threads on this.

From what I understand many programs can be made to work with the proper configuration. Audacity is one program that just doesn't like PulseAudio and can only be made to work as the only program using audio.
I just fired up Audacity and loaded an mp3 into it. Presently it is playing, and the music I am streaming from the internet is also playing.

Audacity cooperates with Alsa just fine.
 
Old 09-09-2008, 01:01 AM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,049

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Pulseaudio is no cure for OSS issues.

ALSA can do multiple mixing, and pulseaudio works on top of ALSA anyway, just like ARTs ESound and a lot of other similar things, whose purpose for a desktop system I could never understand.

In the best case, pulseaudio will only help if ALL your programs use it, which surely is not the case. On the contrary, unless you are using ancient software, all the programs can use plain ALSA without problems.

It doesn't really mater if Ubuntu uses pulseaudio or not, if a given app doesn't support it, Ubuntu can't do anything (unles the ubuntu people go patching all the multimedia software to add pulseaudio support where it's lacking). And still, I'd see no need for it.
 
  


Reply

Tags
channels, multiple, sound


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
Audio works on one program at a time, internet video bad refresh rate Eredeath Linux - Hardware 1 08-23-2008 07:37 PM
Best program for audio enhancement MasterOfTheWind Linux - Software 2 10-02-2007 01:45 PM
Audio Comparison Program indienick Linux - Software 1 08-17-2006 01:53 AM
one sound at a time with nforce2 audio jim64 Linux - General 4 07-29-2003 09:18 PM
Audio and Video in same program arthurzap Linux - Software 2 07-16-2003 04:58 PM


All times are GMT -5. The time now is 07:59 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration