Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can someone explain arts and alsa?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
gilesjuk
Guru
Guru


Joined: 11 Feb 2003
Posts: 412
Location: Staffordshire, UK

PostPosted: Wed Mar 12, 2003 3:02 pm    Post subject: Can someone explain arts and alsa? Reply with quote

Having arts running has prevented other applications from working before now. What I think happens is artsd hogs the alsa driver, other applications must then use arts to play audio. But since not all applications support arts they try to use the alsa driver and lockup, is this right?

Is there any other way I can set this up? I have disabled arts and renamed the binaries to prevent them being started due to the agro they cause.
_________________
^<^>^<^>^
G. Jones
-=-=-=-=-=-
Back to top
View user's profile Send private message
clockwise
Apprentice
Apprentice


Joined: 24 Aug 2002
Posts: 152
Location: uk

PostPosted: Wed Mar 12, 2003 3:13 pm    Post subject: Reply with quote

arts is part of kde, where as alsa is just a set of soundcard drivers. if you are not using kde i would suggest removing "arts" from you USE variables. if your sound card is supported in the kernel, then you can also remove "alsa" from your USE variables.

not too sure what you were after, so it's a pretty broad summary.
_________________
"if an injury has to be done to a man it should be so severe that his vengeance need not be feared." - niccolò machiavelli
Back to top
View user's profile Send private message
Cyclone
n00b
n00b


Joined: 27 Jan 2003
Posts: 23

PostPosted: Wed Mar 12, 2003 3:30 pm    Post subject: Reply with quote

Alsa is the Advanced Linux Sound Architecture. It's a package that contains drivers for many various sound cards. As of the 2.5 kernel series, ALSA is also now part of the kernel sound driver package. For the stable kernel (2.4.X), whether you should use the internel kernel drivers or the ALSA drivers truly varies on your sound card. I use Alsa for both of my computers, and overall I'm satisfied.

Arts is an interface, employed by KDE, to allow the sharing of your sound card between applications. Without Arts, only one application at a time can use your sound card, so things like trying to play MP3's while having your instant messaging program emit sounds is impossible. You are correct that arts "hogs" the alsa driver. After a certain amount of idle time, artsd (the Arts daemon) will sleep, freeing the alsa driver. You can specify the sleep time in the KDE control panel. Another alternative is to use the program "artsdsp" to run the applications which have not been able to access the alsa driver. Artsdsp is a wrapper of sorts, and should allow the program to access arts. Simply run your desired application as follows:
artsdsp <program executable name>
_________________
Cyclone
Successfully running Gentoo 1.4 on a Toshiba 2415-s205 from stage1
Back to top
View user's profile Send private message
gilesjuk
Guru
Guru


Joined: 11 Feb 2003
Posts: 412
Location: Staffordshire, UK

PostPosted: Wed Mar 12, 2003 5:34 pm    Post subject: Reply with quote

I knew what alsa and arts were, just needed to understand how to make apps talk to it. artsdsp seems be it

Cheers :)
_________________
^<^>^<^>^
G. Jones
-=-=-=-=-=-
Back to top
View user's profile Send private message
guero61
l33t
l33t


Joined: 14 Oct 2002
Posts: 811
Location: Behind you

PostPosted: Wed Mar 12, 2003 9:13 pm    Post subject: Reply with quote

Yes, artsdsp seems to be the ticket. I never found this out until a couple of months ago, but it works beautifully. If you're using a GUI (which you must be), just stick "artsdsp " (including the space, of course) before the command to execute a program you want mixed sound on, and voila, it works! (No more messing around with typing more than one command!)
Back to top
View user's profile Send private message
Malakin
Veteran
Veteran


Joined: 14 Apr 2002
Posts: 1692
Location: Victoria BC Canada

PostPosted: Wed Mar 12, 2003 10:56 pm    Post subject: Reply with quote

Quote:
Without Arts, only one application at a time can use your sound card
This is only true for soundcards that don't support hardware mixing with the Alsa driver.

For example I have one system that has an SB Live in it, I disabled artsd and have everything use alsa and it works great. I have another system that has via onboard sound and need to use arts with it, so I have everything go through arts instead.

If you look here:
http://www.alsa-project.org/alsa-doc/
The cards with a (4) beside them support hardware mixing with Alsa so you don't need to use arts. The main downside to using arts is a bit of extra latency and having to use artsdsp on programs that don't support arts.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum