Olivier Blin <[EMAIL PROTECTED]> writes: > > Scratch that... ARTS isn't listed in the README file for ao2... > > > > Developing an ao output plugin for xmms might be useful, however... > > I think it wouldn't be hard to check if arts or esd is started. > Have a look at /usr/bin/soundwrapper, it's really simple. > We could use a script that basically does this: > > #!/bin/sh > if [ `/sbin/pidof -s artsd` ] ; then > # make xmms use arts plugin > else > if [ `/sbin/pidof -s esd` ]; then > # make xmms use esd plugin > else > # check wether alsa or oss is used > fi > fi
I never wanted to do so because I think user can be surprised by the output plugin changing "automatically". Additionally, if then user launches xmms from commandline and soundwrapper chose, say, arts, if arts is no longer running xmms will be suddenly not working. > To make xmms use a custom plugin, we simply have to modifiy the "output_plugin=" > line in the ~/.xmms/config file. > I don't know how it is usually done (sed ?). > > But how can we know whether alsa or oss is used ? > Perhaps we could guess it with the /proc/modules file. > > By the way, with does lsmod only works as root ? It basically > does a cat of this file ;) It works as user. It's the path of your user which doesn't include /sbin. -- Guillaume Cottenceau - http://people.mandrakesoft.com/~gc/
