> 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
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
;)
Olivier Blin