On Mon, Sep 29, 2008 at 5:57 PM, Jacob Meuser <[EMAIL PROTECTED]> wrote: > On Sun, Sep 28, 2008 at 02:14:04AM -0400, Nick Guenther wrote: >> On Sat, Sep 27, 2008 at 7:37 PM, Nick Guenther <[EMAIL PROTECTED]> wrote: >> > On Wed, Oct 31, 2007 at 9:17 AM, Samuel Proulx <[EMAIL PROTECTED]> wrote: >> >> Hello, >> >> >> >> I have been using obsd as my primary desktop for a while now and i have a >> >> question about the sound system , is there a way to play >> >> two sounds at the same time ? Example watching youtube videos with opera >> >> and playing some music in the background with mpd or xmms . >> >> thank you for your time ; ) >> >> >> >> >> > >> > >> > Hey Samuel, >> > >> > Somehow I missed seeing this message of yours: >> > http://kerneltrap.org/mailarchive/openbsd-misc/2007/10/31/374006 >> > that's disappointing to me because I reaaaally want to get mpd to >> > route through esd, but if I change my config file from >> > >> > audio_output { >> > type "ao" >> > name "Libao Audio Device" >> > } >> > >> > to >> > audio_output { >> > type "ao" >> > driver "esd" >> > name "esd" >> > } >> > >> > I get `"esd" is not a valid ao driver at line 112` >> > >> > I also tried >> > $ cat /etc/libao.conf >> > default_driver=esd >> > >> > but it doesn't run esd. So did you get it working? And if so: how? >> > >> >> I just noticed that there is a libao-esd package. I installed that and >> now mpd does indeed try to spawn an esd instance. However, there are >> problems: >> -since mpd seems to chroot itself into /var/empty it needs write >> access there to put a .esd_auth file (but /var/empty has to be 755 >> root:wheel or sshd won't let me log in). I temporarily switched the >> permissions and then back; once it had created the .esd_auth file it >> ran fine until I rebooted. >> -even once esd is running, it doesn't allow other applications through >> it at the same time (thus negating the point of having a sound server) >> >> Sooo I'm just wondering how you went about this. > > $ head -5 /usr/local/share/examples/esound/esd.conf >
Thanks, but I was using exactly that file as my esd.conf and it still doesn't work. $ sudo tail /var/log/mpd/mpd.error esd: Esound sound daemon unable to create unix domain socket: /var/empty/.esd/socket The socket is not accessible by esd. Exiting... Sep 29 22:26 : problems opening audio device while playing "@Indie/Deerhoof/Deerhoof - [2002] Reveille/04 - Punch Buggy Valves.mp3" I could probably hack around with where mpd is running from or twist permissions to get it to talk to esd's socket in /var/empty, but that seems wrong.. and anyway, every other program that would want to talk to esd would need similar hacks. If I change esd.conf to use -tcp or start esd with -tcp by hand then this is all that mpd reports when I try to play a file (gathered with mpd --verbose): interface 0: process command "status" interface 0: command returned 0 interface 0: process command "status" interface 0: command returned 0 interface 0: process command "playid "0"" playlist: play 0:"@Electronica/@Psytrance/Transwave - [1996] Helium/04-Trashish.mp3" copyMpdTagToOB: !acceptMetadata || !tag copyMpdTagToOB: !acceptMetadata || !tag interface 0: command returned 0 interface 0: process command "status" interface 0: command returned 0 problems opening audio device while playing "@Electronica/@Psytrance/Transwave - [1996] Helium/04-Trashish.mp3" playlist: stop interface 0: process command "status" interface 0: command returned 0 interface 0: closed Also, in case it matters: drwxr-xr-x 4 root wheel 512 Sep 29 23:20 /var/empty/ Jacob, do *you* have it working? I really just need a working configuration to compare against. I had mpd routing through an auto-spawning esd at one point, but now I've done *something* to my system and it won't even do that anymore. -Nick