diff options
author | Bruno Coudoin <bcoudoin@src.gnome.org> | 2009-03-24 23:32:04 (GMT) |
---|---|---|
committer | Bruno Coudoin <bcoudoin@src.gnome.org> | 2009-03-24 23:32:04 (GMT) |
commit | 24cd9ce67e31b5607e88c77a7eb744257db83d69 (patch) | |
tree | 6da872f438b255a2468d496f3c8211ba82a63b2d /src/boards | |
parent | 601238f7a77a710ec2547949ddfbfe1f943e2b8d (diff) |
fixed a cased in which the memory sound was in a fuzzy state if the level
* src/boards/memory.c: (start_board), (memory_next_level): fixed a cased in which
the memory sound was in a fuzzy state if the level was changed by the user.
svn path=/trunk/; revision=3795
Diffstat (limited to 'src/boards')
-rw-r--r-- | src/boards/memory.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/boards/memory.c b/src/boards/memory.c index 643e210..bd425bf 100644 --- a/src/boards/memory.c +++ b/src/boards/memory.c @@ -866,14 +866,6 @@ static void start_board (GcomprisBoard *agcomprisBoard) Paused = FALSE; - to_tux = FALSE; - if (currentUiMode == UIMODE_SOUND){ - playing_sound = TRUE; - gc_sound_play_ogg_cb("sounds/LuneRouge/musique/LRBuddhist_gong_05_by_Lionel_Allorge.ogg", - start_callback); - } else - playing_sound = FALSE; - memory_next_level(); } } @@ -959,6 +951,15 @@ static void memory_next_level() { gc_bar_set_level(gcomprisBoard); + to_tux = FALSE; + if (currentUiMode == UIMODE_SOUND){ + /* We play a sound here to cancel any pending sounds callback from a previous play */ + playing_sound = TRUE; + gc_sound_play_ogg_cb("sounds/LuneRouge/musique/LRBuddhist_gong_05_by_Lionel_Allorge.ogg", + start_callback); + } else + playing_sound = FALSE; + memory_destroy_all_items(); boardRootItem = GNOME_CANVAS_GROUP( |