]> hydra-www.ietfng.org Git - gtetrinet/commitdiff
patch from Ryan Underwood which fixes sound support.
authorJordi Albornoz <jordi@src.gnome.org>
Thu, 17 Oct 2002 09:26:39 +0000 (09:26 +0000)
committerJordi Albornoz <jordi@src.gnome.org>
Thu, 17 Oct 2002 09:26:39 +0000 (09:26 +0000)
ChangeLog
src/sound.c

index 18155c2c09b7293a9354c5ac3fd267a2f31cb119..cec70e0b6528186cb376909281685d6911d9255f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-10-17  Jordi Mallach  <jordi@sindominio.net>
+
+       * src/sound.c (sound_playsound): patch from Ryan Underwood which
+       fixes sound support.
+
 2002-10-14  Jordi Mallach  <jordi@sindominio.net>
 
        * Makefile.am: add a "changelog" target, generates a CVS-based
index 75193b037af79398c7d8f844150840bb3ef4c400..8f38a40c9eb3e9e87e6b1f3b85fdf78492ccfcb8 100644 (file)
@@ -55,8 +55,8 @@ void sound_cache (void)
 void sound_playsound (int id)
 {
     if (!soundenable) return;
-    if (soundsamples[id])
-        esd_sample_play (gnome_sound_connection, soundsamples[id]);
+    if (soundfiles[id][0])
+        esd_play_file ("gtetrinet", soundfiles[id], -1);
 }
 
 void sound_playmidi (char *file)