LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-06-2004, 09:07 AM   #1
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Rep: Reputation: 30
alsa cant work parallely with more then one program.


alsa cant work with two program at once.

when i'm playing mp3 with xmms i cant lauch mplayer or any media player program. it will stuck at there until i stop xmms from playing any songs.

how to fix this?
i'm sure that alsa support this right?
OSS support parrallel playing.
 
Old 03-06-2004, 11:21 AM   #2
Qzukk
Member
 
Registered: Jun 2003
Posts: 132

Rep: Reputation: 15
Mixing multiple audio sources depends on the sound card driver. Apparently the alsa driver for your soundcard either doesn't allow it, or only allows it for programs using the alsa library to play. If the OSS driver for your card works for you, either go back to it, or make sure you're using the alsa output plugin for xmms, the alsa -ao driver for mplayer, etc.
 
Old 03-06-2004, 04:27 PM   #3
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Original Poster
Rep: Reputation: 30
i've gone into alsa-driver-1.0.3 and looked through the FAQ file and found out this

Q: When I play something and I try to play something other the second attempt
will not fail but instead it hangs waiting for the completion of the first
sound.
A: This is definitely the standard behaviour as described in many official
documents that now ALSA follows. There is no reasons to complain about that
for the following reasons:
- it's the right (standard) way
- the application that want a different behaviour can open the device in
O_NONBLOCK mode
- all modern OSS drivers in mainstream kernel (cmpci, es1370, es1371,
esssolo1, maestro, sonicvibes, vwsnd) works in the same ways and the
others have to be intended buggy
- we want you ask to broken applications author to fix them ;-)

so it said it is a normal standard way of the device.
is there any way to get around this?
 
Old 03-06-2004, 09:53 PM   #4
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
this is just the way sound is handled by many linux drivers

gui's like kde and gnome have tried to create a sound server (like the standard sound server in windows) that will soak in all sound calls and relay them to the driver as one sound (ie aRts in kde and esd in gnome); unfortunately, all applications must have a specific driver for aRts in order for this to work correctly, and still this often fails

the only way to get around this is to find a sound card that has a driver that will allow for multiple sound automatically; most good sound cards allow this (off the top of my head, the audigy cards work best for this)
 
Old 03-07-2004, 05:32 AM   #5
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Original Poster
Rep: Reputation: 30
then why do my soundcard does work with 2 or more stream of sound at the same time?
i can play winamp and play dvds at the same time.

i also play need for speed and plays winamp at the same time also.

is it because of the driver or alsa limitation?
 
Old 03-07-2004, 11:00 AM   #6
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
i assume you mean in windows that you can play more than 1 sound at once

in short, yes, it is a limitation with the way sound drivers are made in linux for certain cards (in reality, some cards can really only play 1 sound at once; and like i said before, the sound server tries to mix that all into one sound; in windows, there is a standard way of doing this but it is just one problem in linux)

however, cards like the audigy's can play more than 1 sound at once on the hardware level
 
Old 03-09-2004, 10:43 AM   #7
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Original Poster
Rep: Reputation: 30
that means that i cant do anything else but to get myself used to this limitation unless i can edit the driver myself.

ok thanx for a great explaination.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Necessity of OSS+ALSA, and Program conflictions Synesthesia Linux - General 1 05-21-2005 11:09 AM
Getting ALSA to work a monkey Fedora 2 02-27-2005 12:22 AM
ALSA error: ALSA device "default" is already in use by another program. darkleaf Linux - Software 2 07-20-2004 04:34 PM
make an alsa program use OSS output ? qwijibow Linux - Software 9 03-09-2004 07:45 AM
got ALSA to work in root, need help getting it to work in my user profile ic3 Slackware 2 11-28-2003 10:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:24 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
Open Source Consulting | Domain Registration