# Patch to xmms for versions from 1.0.1 to 1.2.2 by Vlad Harchev # # This patch will fix playing to remote esd servers - now changing the volume # won't affect volume on local host (and will prevent opening /dev/dsp). # # I hardly tried to include this patch to xmms source tree with no luck so far. # diff -ru xmms-1.2.2-was/Output/esd/mixer.c xmms-1.2.2/Output/esd/mixer.c --- xmms-1.2.2-was/Output/esd/mixer.c Fri Jul 30 02:03:11 1999 +++ xmms-1.2.2/Output/esd/mixer.c Wed Aug 9 22:24:24 2000 @@ -28,7 +28,12 @@ { #if defined(HAVE_SYS_SOUNDCARD_H) || defined(HAVE_MACHINE_SOUNDCARD_H) int fd, v, cmd, devs; - + + if (esd_cfg.use_remote) { + *l = 100; + *r = 100; + return; + }; fd = open("/dev/mixer", O_RDONLY); if (fd != -1) { @@ -58,6 +63,9 @@ #if defined(HAVE_SYS_SOUNDCARD_H) || defined(HAVE_MACHINE_SOUNDCARD_H) int fd, v, cmd, devs; + + if (esd_cfg.use_remote) + return; fd = open("/dev/mixer", O_RDONLY);