[gcompris/gcomprixogoo] Fixed missing sounds with the SDL backend.



commit fbd6ea28735044e55a871d4b8d35dbde302f6964
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Wed Feb 10 23:23:13 2010 +0100

    Fixed missing sounds with the SDL backend.
    
    The SDL backend was initialized in the  PLAY_ONLY_IF_IDLE
    instead of PLAY_AFTER_CURRENT.
    Thus sending 2 close voices, the second one was discarded.

 src/gcompris/soundutil_sdl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gcompris/soundutil_sdl.c b/src/gcompris/soundutil_sdl.c
index 9f55249..a74933f 100644
--- a/src/gcompris/soundutil_sdl.c
+++ b/src/gcompris/soundutil_sdl.c
@@ -30,7 +30,6 @@
 #include <signal.h>
 #include <glib.h>
 
-static int	 sound_policy;
 static gboolean	 music_paused = FALSE;
 static gboolean	 sound_closed = FALSE;
 
@@ -90,7 +89,8 @@ gc_sound_init()
   lock_fx = g_mutex_new ();
   cond = g_cond_new ();
 
-  sound_policy = PLAY_AFTER_CURRENT;
+  gc_sound_policy_set(PLAY_AFTER_CURRENT);
+
 
   if(sdlplayer_init()!=0) {
     /* Sound init failed. Desactivate the sound */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]