On Sat, Dec 21, 2002 at 08:49:38 -0800, Mark Knecht wrote:
> > I want to click on icons for mp3 and wave
files and get sound. If I'm
> > running jack, I need to start alsaplayer one way, and if I'm not I need
> > to start alsaplayer another way. Therefore my file associations have to
> > change, based on whether jack is running or not. Not good.
>
> Try creating a shell script, eg /usr/local/bin/run-alsaplayer:
>
> ---- cut -----
> #!
> alsaplayer -o jack $* || alsaplayer $*
As someone pointed out, this is wrong, it should be "$@", sorry, I didn;t
test it before posting.
2) It doesn't fall back to alsa if jack is not
running. I tried changing
the script to -o alsa, but that didn't work. Trying it from the command
line it complains about jack not running:
Thats because your alsaplayer is broken w.r.t the ALSA drivers. Mine is
too.
- Steve