SuperDindon
March 14th, 2007, 03:53 PM
Why would I like to get rid of aRts ?
Maybe.. you want to get ahead of your time (KDE 4) ? Want sound in non-arts software or want to maximize the prominence of your ALSA configuration ( see below ) ? Or you just noticed that arts is totally useless and wonder why it is still eating your resources ? Let's blast it !
Read also : http://ubuntuforums.org/showthread.php?t=344599
Just do it!
First install the package "sox", which is a lil' CLI program which has the ability we are looking for : play most types of sound files through ALSA.
Then we'll make a script we'll call kdeplay and place in /usr/local/bin :
sudo kwrite /usr/local/bin/kdeplay
Fill it :
#!/bin/sh
VOLUME=0.75
sox -q $1 -t alsa -v $VOLUME default
Save it, close kwrite and make the new script executable :
sudo chmod a+x /usr/local/bin/kdeplay
Now go in the KDE Configuration Center -> Sound & Multimedia -> System notifications -> Player configuration. Tick "Use an external player" and enter the path of our script above : /usr/local/bin/kdeplay. Job is done!
Now you can disable aRts in Sound & Multimedia -> Sound system and still enjoy KDE sounds ;)
And what about esound ?
Sorry Gnomers, there's no way to escape from esound for now. You can however redirect esound to dmix so esound won't monopolize your hardware, change this line in /etc/esd/esd.conf :
spawn_options=-terminate -nobeeps -as 1
to :spawn_options=-terminate -nobeeps -as 1 -d default
Maybe.. you want to get ahead of your time (KDE 4) ? Want sound in non-arts software or want to maximize the prominence of your ALSA configuration ( see below ) ? Or you just noticed that arts is totally useless and wonder why it is still eating your resources ? Let's blast it !
Read also : http://ubuntuforums.org/showthread.php?t=344599
Just do it!
First install the package "sox", which is a lil' CLI program which has the ability we are looking for : play most types of sound files through ALSA.
Then we'll make a script we'll call kdeplay and place in /usr/local/bin :
sudo kwrite /usr/local/bin/kdeplay
Fill it :
#!/bin/sh
VOLUME=0.75
sox -q $1 -t alsa -v $VOLUME default
Save it, close kwrite and make the new script executable :
sudo chmod a+x /usr/local/bin/kdeplay
Now go in the KDE Configuration Center -> Sound & Multimedia -> System notifications -> Player configuration. Tick "Use an external player" and enter the path of our script above : /usr/local/bin/kdeplay. Job is done!
Now you can disable aRts in Sound & Multimedia -> Sound system and still enjoy KDE sounds ;)
And what about esound ?
Sorry Gnomers, there's no way to escape from esound for now. You can however redirect esound to dmix so esound won't monopolize your hardware, change this line in /etc/esd/esd.conf :
spawn_options=-terminate -nobeeps -as 1
to :spawn_options=-terminate -nobeeps -as 1 -d default