Commit 3850a8d6 authored by Bruno Coudoin's avatar Bruno Coudoin

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.
	  Merged from trunk 3795


svn path=/branches/gcomprixogoo/; revision=3798
parent 2b0e22d4
2009-03-25 Bruno coudoin <bruno.coudoin@free.fr>
* 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.
Merged from trunk 3795
2009-03-24 Bruno coudoin <bruno.coudoin@free.fr>
- Replaced a level in memory sound to make the difficulty always increasing
......
......@@ -969,13 +969,6 @@ static void start_board (GcomprisBoard *agcomprisBoard)
Paused = FALSE;
to_tux = FALSE;
if (currentUiMode == UIMODE_SOUND){
playing_sound = TRUE;
gc_sound_play_ogg_cb("memory/LRBuddhist_gong_05_LA.ogg",start_callback);
} else
playing_sound = FALSE;
memory_next_level();
}
}
......@@ -1059,6 +1052,14 @@ 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("memory/LRBuddhist_gong_05_LA.ogg",start_callback);
} else
playing_sound = FALSE;
memory_destroy_all_items();
boardRootItem = goo_canvas_group_new (goo_canvas_get_root_item(gcomprisBoard->canvas),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment