On Tue, Sep 30, 2008 at 10:38 AM, Marius Hooge <[EMAIL PROTECTED]> wrote: > Jacob Meuser wrote: >> >> first, autospawning does not work in esound-0.2.38. I don't know if >> that's the version you are using, but that could be part of the problem. >> I'm pretty sure I had mpd playing through esd at one point. >> >> let's see. add a group, _esd. add myself and _mpd to that >> group. start esd as myself, chgrp _esd ~/.esd_auth, chmod g+rw >> ~/.esd_auth. echo "default_driver=esd" > /etc/libao.conf. >> sudo mpd. starts fine, but oh, no workie. >> >> ok, make /var/esd. make that _mpd's home, and link from there an >> .esd_auth to my .esd_auth. that seems to work. >> > > I have mpd playing through libao-esd, but without running them under their > own users. > Since Nick asked for a configuration that worked, here's mine: > > I first start esd with -noterminate, then mpd. > ~/.mpd.conf: > [..] > audio_output { > type "ao" > driver "esd" > name "ESD" > } > > I installed the mplayer-esd port. > ~/.mplayer/config: > ao=esd > > If this works you can try running esd and mpd under their own users. > hth > - Marius >
Aaah, I didn't realize how the user's homedir interacted with this all. What must have been happening is that when I clicked 'play' in soundtracker (which was running as myself) it looked for ~/.esd_auth, didn't find it, so tried to spawn an esd, which promptly failed because the other esd already had the soundcard. All it took was: ln -sf /var/empty/.esd_auth ~/.esd_auth and now both mpd and soundtracker can play at once. There's some lag when I first hit play but that's probably because right now it's running with tcp and autospawning which probably are eating at it quite a bit. I am going to play around some more and see if I can get esd running as a system-wide daemon. Weird, I just tried to run esd with "-noterminate" but it said "unrecognized option: -noterminate". The esd that packages installed for me is "Esound version 0.2.34", what are you running? I built and installed mplayer-esd and edited ~/.mplayer/config to add ao=esd like suggested but when that is in there mplayer just says "Could not open/initialize audio device -> no sound. Audio: no sound Video: no video Exiting... (End of file)" If I don't tell mplayer "ao=esd" then it grabs /dev/audio directly (and works fine). Do you know how to debug this? ((I also have $ cat /etc/libao.conf default_driver=esd if that is relevant)) Thank you for all the help so far, I had given up on esd. -Nick