Commit 3b3de605 authored by Bruno Coudoin's avatar Bruno Coudoin

- fixed many bad reference to sounds.

	- melody game playable again.
parent ff500536
2006-08-12 Bruno coudoin <bruno.coudoin@free.fr>
- fixed many bad reference to sounds.
- melody game playable again.
* boards/melody.xml.in:
* boards/sounds/explos.ogg:
* src/boards/algebra.c: (item_event):
* src/boards/canal_lock.c: (game_won), (move_boat), (item_event):
* src/boards/chess.c: (game_won):
* src/boards/clickgame.c: (game_won), (item_event):
* src/boards/clockgame.c: (game_won):
* src/boards/crane.c: (bonus), (select_item):
* src/boards/enumerate.c: (game_won):
* src/boards/erase.c: (game_won):
* src/boards/fifteen.c: (game_won):
* src/boards/gletters.c: (player_win), (player_loose):
* src/boards/hanoi.c: (game_won):
* src/boards/hanoi_real.c: (game_won):
* src/boards/machpuzzle.c: (game_won):
* src/boards/magic_hat.c: (process_ok), (item_event):
* src/boards/maze.c: (game_won):
* src/boards/memory.c: (player_win), (check_win), (tux_play),
(sound_callback):
* src/boards/menu2.c: (item_event):
* src/boards/money.c: (game_won):
* src/boards/paratrooper.c: (paratrooper_move_tux):
* src/boards/planegame.c: (planegame_cloud_colision):
* src/boards/python/melody.py:
* src/boards/railroad.c: (game_won):
* src/boards/reversecount.c: (process_error), (game_won),
(animate_tux):
* src/boards/shapegame.c: (shape_goes_back_to_list):
* src/boards/smallnumbers.c: (player_win):
* src/boards/submarine.c: (update_timeout_slow),
(submarine_explosion):
* src/boards/superbrain.c: (game_won):
* src/boards/target.c: (game_won):
* src/boards/traffic.c: (game_won):
* src/boards/wordsgame.c: (player_win), (player_loose):
2006-08-12 Bruno coudoin <bruno.coudoin@free.fr>
- Fixed africa maps. Removed too tiny country in the whole africa map. Fixed missing
......
......@@ -7,7 +7,7 @@
difficulty="2"
icon="boardicons/melody.png"
author="Jose JORGE (jjorge@free.fr)"
mandatory_sound_file="melody/xylofon/son1.ogg"
mandatory_sound_file="sounds/melody/xylofon/son1.ogg"
boarddir="melody">
<_title>Melody</_title>
<_description>Repeat a melody</_description>
......
/* gcompris - algebra.c
*
* Time-stamp: <2006/08/12 02:45:08 bruno>
* Time-stamp: <2006/08/12 03:00:37 bruno>
*
* Copyright (C) 2000 Bruno Coudoin
*
......@@ -708,7 +708,7 @@ item_event(GnomeCanvasItem *item, GdkEvent *event, gpointer data)
currentToBeFoundItem=toBeFoundItem;
gcompris_play_ogg ("sounds/gobble", NULL);
gcompris_play_ogg ("sounds/gobble.ogg", NULL);
break;
default:
......
......@@ -450,7 +450,7 @@ static void game_won()
board_finished(BOARD_FINISHED_RANDOM);
return;
}
gcompris_play_ogg ("bonus", NULL);
gcompris_play_ogg ("sounds/bonus.ogg", NULL);
}
canal_lock_next_level();
}
......@@ -492,7 +492,7 @@ static void move_boat()
else
{
/* No possible move */
gcompris_play_ogg ("crash", NULL);
gcompris_play_ogg ("sounds/crash.ogg", NULL);
animation = FALSE;
return;
}
......@@ -721,7 +721,7 @@ item_event(GnomeCanvasItem *item, GdkEvent *event, gpointer data)
if(lock_water_low && canallock_right_up)
toggle_lock(item);
else
gcompris_play_ogg ("crash", NULL);
gcompris_play_ogg ("sounds/crash.ogg", NULL);
}
else if(item == lock_right_item)
......@@ -729,21 +729,21 @@ item_event(GnomeCanvasItem *item, GdkEvent *event, gpointer data)
if(!lock_water_low && canallock_left_up)
toggle_lock(item);
else
gcompris_play_ogg ("crash", NULL);
gcompris_play_ogg ("sounds/crash.ogg", NULL);
}
else if(item == canallock_left_item && canallock_right_up)
{
if(lock_right_up)
toggle_lock(item);
else
gcompris_play_ogg ("crash", NULL);
gcompris_play_ogg ("sounds/crash.ogg", NULL);
}
else if(item == canallock_right_item && canallock_left_up)
{
if(lock_left_up)
toggle_lock(item);
else
gcompris_play_ogg ("crash", NULL);
gcompris_play_ogg ("sounds/crash.ogg", NULL);
}
else if(item == tuxboat_item)
{
......@@ -751,7 +751,7 @@ item_event(GnomeCanvasItem *item, GdkEvent *event, gpointer data)
}
else
{
gcompris_play_ogg ("crash", NULL);
gcompris_play_ogg ("sounds/crash.ogg", NULL);
}
break;
default:
......
......@@ -546,7 +546,7 @@ static void game_won()
board_finished(BOARD_FINISHED_RANDOM);
return;
}
gcompris_play_ogg ("bonus", NULL);
gcompris_play_ogg ("sounds/bonus.ogg", NULL);
}
chess_next_level();
}
......
/* gcompris - clickgame.c
*
* Time-stamp: <2006/07/16 19:19:54 bruno>
* Time-stamp: <2006/08/12 03:08:39 bruno>
*
* Copyright (C) 2000 Bruno Coudoin
*
......@@ -561,7 +561,7 @@ static void game_won()
board_finished(BOARD_FINISHED_RANDOM);
return;
}
gcompris_play_ogg ("bonus", NULL);
gcompris_play_ogg ("sounds/bonus.ogg", NULL);
}
clickgame_next_level();
}
......@@ -608,7 +608,7 @@ item_event(GnomeCanvasItem *item, GdkEvent *event, FishItem *fishitem)
else
{
clickgame_destroy_item(fishitem);
gcompris_play_ogg ("gobble", NULL);
gcompris_play_ogg ("sounds/gobble.ogg", NULL);
gcomprisBoard->sublevel++;
gcompris_score_set(gcomprisBoard->sublevel);
......
/* gcompris - clockgame.c
*
* Time-stamp: <2006/04/05 01:16:11 bruno>
* Time-stamp: <2006/08/12 03:07:11 bruno>
*
* Copyright (C) 2000 Bruno Coudoin
*
......@@ -618,7 +618,7 @@ static void game_won()
board_finished(BOARD_FINISHED_RANDOM);
return;
}
gcompris_play_ogg ("bonus", NULL);
gcompris_play_ogg ("sounds/bonus.ogg", NULL);
}
clockgame_next_level();
}
......
......@@ -346,7 +346,7 @@ static GnomeCanvasItem *crane_create_item()
static void bonus() {
gcompris_display_bonus(gamewon, BONUS_SMILEY);
gcompris_play_ogg ("bonus", NULL);
gcompris_play_ogg ("sounds/bonus.ogg", NULL);
timer_id = 0;
}
......@@ -736,7 +736,7 @@ static void select_item(GnomeCanvasItem *item, int sound) {
"points", crane_rope,
NULL);
if (sound) gcompris_play_ogg ("gobble", NULL);
if (sound) gcompris_play_ogg ("sounds/gobble.ogg", NULL);
selected_item = item;
}
......
......@@ -469,7 +469,7 @@ static void game_won()
board_finished(BOARD_FINISHED_RANDOM);
return;
}
gcompris_play_ogg ("bonus", NULL);
gcompris_play_ogg ("sounds/bonus.ogg", NULL);
}
enumerate_next_level();
}
......
......@@ -424,7 +424,7 @@ static void game_won()
g_warning("Double click value is now %d.", DoubleClicLevel[gcomprisBoard->level-1]);
}
gcompris_play_ogg ("bonus", NULL);
gcompris_play_ogg ("sounds/bonus.ogg", NULL);
}
erase_next_level();
}
......
......@@ -299,7 +299,7 @@ static void game_won()
board_finished(BOARD_FINISHED_RANDOM);
return;
}
gcompris_play_ogg ("bonus", NULL);
gcompris_play_ogg ("sounds/bonus.ogg", NULL);
}
fifteen_next_level();
}
......
/* gcompris - gletters.c
*
* Time-stamp: <2006/05/08 19:21:04 bruno>
* Time-stamp: <2006/08/12 03:12:58 bruno>
*
* Copyright (C) 2000 Bruno Coudoin
*
......@@ -711,7 +711,7 @@ static void player_win(GnomeCanvasItem *item)
g_message("in player_win\n");
gletters_destroy_item(item);
gcompris_play_ogg ("gobble", NULL);
gcompris_play_ogg ("sounds/gobble.ogg", NULL);
gcomprisBoard->sublevel++;
......@@ -754,7 +754,7 @@ static void player_loose()
{
g_warning("entering player_loose\n");
gcompris_play_ogg ("crash", NULL);
gcompris_play_ogg ("sounds/crash.ogg", NULL);
g_warning("leaving player_loose\n");
}
......
......@@ -574,7 +574,7 @@ static void game_won()
board_finished(BOARD_FINISHED_RANDOM);
return;
}
gcompris_play_ogg ("bonus", NULL);
gcompris_play_ogg ("sounds/bonus.ogg", NULL);
}
hanoi_next_level();
}
......
......@@ -408,7 +408,7 @@ static void game_won()
board_finished(BOARD_FINISHED_RANDOM);
return;
}
gcompris_play_ogg ("bonus", NULL);
gcompris_play_ogg ("sounds/bonus.ogg", NULL);
}
hanoi_next_level();
}
......
......@@ -261,7 +261,7 @@ static void game_won()
board_finished(BOARD_FINISHED_RANDOM);
return;
}
gcompris_play_ogg ("bonus", NULL);
gcompris_play_ogg ("sounds/bonus.ogg", NULL);
}
minigolf_next_level();
}
......
......@@ -225,7 +225,7 @@ static void process_ok() {
if (ok) {
gamewon = TRUE;
gcompris_play_ogg ("bonus", NULL);
gcompris_play_ogg ("sounds/bonus.ogg", NULL);
}
gcompris_display_bonus(gamewon, BONUS_FLOWER);
......@@ -644,7 +644,7 @@ static gint item_event(GnomeCanvasItem *item, GdkEvent *event, gpointer data) {
gdk_pixbuf_unref(pixmap);
}
gcompris_play_ogg ("gobble", NULL);
gcompris_play_ogg ("sounds/gobble.ogg", NULL);
}
return FALSE;
......
......@@ -516,7 +516,7 @@ static GnomeCanvasItem *maze_create_item(GnomeCanvasGroup *parent) {
* =====================================================================*/
static void game_won() {
twoDdisplay();
gcompris_play_ogg ("bonus", NULL);
gcompris_play_ogg ("sounds/bonus.ogg", NULL);
/* Try the next level */
gcomprisBoard->level++;
if(gcomprisBoard->level>gcomprisBoard->maxlevel) { // the current board is finished : bail out
......
/* gcompris - memory.c
*
* Time-stamp: <2006/04/17 22:28:15 bruno>
* Time-stamp: <2006/08/12 03:08:59 bruno>
*
* Copyright (C) 2000 Bruno Coudoin
*
......@@ -1389,7 +1389,7 @@ static void create_item(GnomeCanvasGroup *parent)
static void player_win()
{
gcompris_play_ogg ("bonus", NULL);
gcompris_play_ogg ("sounds/bonus.ogg", NULL);
/* Try the next level */
if (tux_pairs <= player_pairs)
gcomprisBoard->level++;
......@@ -1530,7 +1530,7 @@ static void check_win()
// Check win
if (compare_card((gpointer) firstCard, (gpointer) secondCard) == 0) {
gcompris_play_ogg ("gobble", NULL);
gcompris_play_ogg ("sounds/gobble.ogg", NULL);
win_id = g_timeout_add (timeout,
(GSourceFunc) hide_card, NULL);
return;
......@@ -1722,7 +1722,7 @@ static gint tux_play(){
if (currentUiMode == UIMODE_SOUND)
return FALSE;
else {
gcompris_play_ogg ("gobble", NULL);
gcompris_play_ogg ("sounds/gobble.ogg", NULL);
win_id = g_timeout_add (1000,
(GSourceFunc) hide_card, NULL);
return TRUE;
......@@ -1776,7 +1776,7 @@ static gint tux_play(){
return FALSE;
else {
if (compare_card(firstCard, secondCard)==0){
gcompris_play_ogg ("gobble", NULL);
gcompris_play_ogg ("sounds/gobble.ogg", NULL);
g_warning("Now tux win !");
win_id = g_timeout_add (1000,
(GSourceFunc) hide_card, NULL);
......@@ -1802,7 +1802,7 @@ static void sound_callback(gchar *file)
if (to_tux) {
if (firstCard && secondCard){
if (compare_card(firstCard, secondCard)==0){
gcompris_play_ogg ("gobble", NULL);
gcompris_play_ogg ("sounds/gobble.ogg", NULL);
win_id = g_timeout_add (1000,
(GSourceFunc) hide_card, NULL);
tux_id = g_timeout_add (2000,
......
/* gcompris - menu2.c
*
* Time-stamp: <2006/08/11 18:58:38 bruno>
* Time-stamp: <2006/08/12 02:59:38 bruno>
*
* Copyright (C) 2000 Bruno Coudoin
*
......@@ -642,7 +642,7 @@ item_event(GnomeCanvasItem *item, GdkEvent *event, MenuItems *menuitems)
break;
case GDK_BUTTON_PRESS:
gcompris_play_ogg ("gobble", NULL);
gcompris_play_ogg ("sounds/gobble.ogg", NULL);
if (strcmp(board->type,"menu")==0){
gchar *path = g_strdup_printf("%s/%s",board->section, board->name);
......
......@@ -552,7 +552,7 @@ static void game_won()
board_finished(BOARD_FINISHED_RANDOM);
return;
}
gcompris_play_ogg ("bonus", NULL);
gcompris_play_ogg ("sounds/bonus.ogg", NULL);
}
money_next_level();
}
......
/* gcompris - paratrooper.c
*
* Time-stamp: <2006/01/22 22:50:43 bruno>
* Time-stamp: <2006/08/12 03:13:17 bruno>
*
* Copyright (C) 2000 Bruno Coudoin
*
......@@ -573,7 +573,7 @@ static gint paratrooper_move_tux (GtkWidget *widget, gpointer data)
{
gnome_canvas_item_hide(paratrooperItem.parachute);
paratrooperItem.status = TUX_LANDED;
gcompris_play_ogg ("bonus", NULL);
gcompris_play_ogg ("sounds/bonus.ogg", NULL);
next_state();
}
else
......@@ -585,7 +585,7 @@ static gint paratrooper_move_tux (GtkWidget *widget, gpointer data)
{
gnome_canvas_item_hide(paratrooperItem.parachute);
paratrooperItem.status = TUX_CRASHED;
gcompris_play_ogg ("crash", NULL);
gcompris_play_ogg ("sounds/crash.ogg", NULL);
next_state();
}
}
......
/* gcompris - planegame.c
*
* Time-stamp: <2006/08/11 19:02:09 bruno>
* Time-stamp: <2006/08/12 03:09:14 bruno>
*
* Copyright (C) 2000 Bruno Coudoin
*
......@@ -336,7 +336,7 @@ static void planegame_cloud_colision(CloudItem *clouditem)
{
if(plane_target == clouditem->number)
{
gcompris_play_ogg ("gobble", NULL);
gcompris_play_ogg ("sounds/gobble.ogg", NULL);
item2del_list = g_list_append (item2del_list, clouditem);
plane_target++;
......@@ -354,7 +354,7 @@ static void planegame_cloud_colision(CloudItem *clouditem)
return;
}
planegame_next_level();
gcompris_play_ogg ("bonus", NULL);
gcompris_play_ogg ("sounds/bonus.ogg", NULL);
}
}
}
......
......@@ -71,26 +71,26 @@ class Gcompris_melody:
# xylophon
[
{'theme': "xylofon", 'background': "melody/xylofon/background.png", 'hittool': "melody/xylofon/cursor.png", 'hitofset_x': 50, 'hitofset_y': 50},
[ {'x': 150.0, 'y': 101.0, 'image': "melody/xylofon/son1.png", 'sound': "melody/xylofon/son1"},
{'x': 284.0, 'y': 118.0, 'image': "melody/xylofon/son2.png", 'sound': "melody/xylofon/son2"},
{'x': 412.0, 'y': 140.0, 'image': "melody/xylofon/son3.png", 'sound': "melody/xylofon/son3"},
{'x': 546.0, 'y': 157.0, 'image': "melody/xylofon/son4.png", 'sound': "melody/xylofon/son4"} ] ],
[ {'x': 150.0, 'y': 101.0, 'image': "melody/xylofon/son1.png", 'sound': "sounds/melody/xylofon/son1.ogg"},
{'x': 284.0, 'y': 118.0, 'image': "melody/xylofon/son2.png", 'sound': "sounds/melody/xylofon/son2.ogg"},
{'x': 412.0, 'y': 140.0, 'image': "melody/xylofon/son3.png", 'sound': "sounds/melody/xylofon/son3.ogg"},
{'x': 546.0, 'y': 157.0, 'image': "melody/xylofon/son4.png", 'sound': "sounds/melody/xylofon/son4.ogg"} ] ],
# guitar
[
{'theme': "guitar", 'background': "melody/guitar/background.jpg", 'hittool': "melody/guitar/cursor.png", 'hitofset_x': 400, 'hitofset_y': -5},
[ {'x': 0, 'y': 170.0, 'image': "melody/guitar/son1.png", 'sound': "melody/guitar/son1"},
{'x': 0, 'y': 230.0, 'image': "melody/guitar/son2.png", 'sound': "melody/guitar/son2"},
{'x': 0, 'y': 290.0, 'image': "melody/guitar/son3.png", 'sound': "melody/guitar/son3"},
{'x': 0, 'y': 350.0, 'image': "melody/guitar/son4.png", 'sound': "melody/guitar/son4"} ] ],
[ {'x': 0, 'y': 170.0, 'image': "melody/guitar/son1.png", 'sound': "sounds/melody/guitar/son1.ogg"},
{'x': 0, 'y': 230.0, 'image': "melody/guitar/son2.png", 'sound': "sounds/melody/guitar/son2.ogg"},
{'x': 0, 'y': 290.0, 'image': "melody/guitar/son3.png", 'sound': "sounds/melody/guitar/son3.ogg"},
{'x': 0, 'y': 350.0, 'image': "melody/guitar/son4.png", 'sound': "sounds/melody/guitar/son4.ogg"} ] ],
# Kitchen
[
{'theme': "tachos", 'background': "melody/tachos/background.jpg", 'hittool': "melody/tachos/cursor.png", 'hitofset_x': 50, 'hitofset_y': 50},
[ {'x': 150.0, 'y': 50.0, 'image': "melody/tachos/son1.png", 'sound': "melody/tachos/son1"},
{'x': 550.0, 'y': 50.0, 'image': "melody/tachos/son2.png", 'sound': "melody/tachos/son2"},
{'x': 150.0, 'y': 250.0, 'image': "melody/tachos/son3.png", 'sound': "melody/tachos/son3"},
{'x': 550.0, 'y': 250.0, 'image': "melody/tachos/son4.png", 'sound': "melody/tachos/son4"} ] ] ]
[ {'x': 150.0, 'y': 50.0, 'image': "melody/tachos/son1.png", 'sound': "sounds/melody/tachos/son1.ogg"},
{'x': 550.0, 'y': 50.0, 'image': "melody/tachos/son2.png", 'sound': "sounds/melody/tachos/son2.ogg"},
{'x': 150.0, 'y': 250.0, 'image': "melody/tachos/son3.png", 'sound': "sounds/melody/tachos/son3.ogg"},
{'x': 550.0, 'y': 250.0, 'image': "melody/tachos/son4.png", 'sound': "sounds/melody/tachos/son4.ogg"} ] ] ]
self.maxtheme = len(self.melodylist)-1
self.gcomprisBoard.maxlevel = 9
......@@ -108,7 +108,7 @@ class Gcompris_melody:
self.display_current_level()
# Play an intro sound
gcompris.sound.play_ogg_cb("melody/" + self.melodylist[self.theme][0]['theme'] + "/melody", self.intro_cb)
gcompris.sound.play_ogg_cb("sounds/melody/" + self.melodylist[self.theme][0]['theme'] + "/melody.ogg", self.intro_cb)
Prop = gcompris.get_properties()
......
......@@ -406,7 +406,7 @@ static void game_won()
board_finished(BOARD_FINISHED_RANDOM);
return;
}
gcompris_play_ogg ("bonus", NULL);
gcompris_play_ogg ("sounds/bonus.ogg", NULL);
}
railroad_next_level();
}
......
......@@ -286,7 +286,7 @@ gint key_press(guint keyval, gchar *commit_str, gchar *preedit_str)
static void process_error()
{
gcompris_play_ogg ("crash", NULL);
gcompris_play_ogg ("sounds/crash.ogg", NULL);
errors--;
if(errors==0)
{
......@@ -677,7 +677,7 @@ static void game_won()
board_finished(BOARD_FINISHED_RANDOM);
return;
}
gcompris_play_ogg ("bonus", NULL);
gcompris_play_ogg ("sounds/bonus.ogg", NULL);
}
reversecount_next_level();
}
......@@ -826,7 +826,7 @@ static gint animate_tux()
if(fishItem!=NULL)
gtk_object_destroy(GTK_OBJECT(fishItem));
gcompris_play_ogg ("gobble", NULL);
gcompris_play_ogg ("sounds/gobble.ogg", NULL);
if(--number_of_fish == 0)
{
......
/* gcompris - shapegame.c
*
* Time-stamp: <2006/08/11 18:38:23 bruno>
* Time-stamp: <2006/08/12 03:05:15 bruno>
*
* Copyright (C) 2000 Bruno Coudoin
*
......@@ -964,7 +964,7 @@ static void shape_goes_back_to_list(Shape *shape, GnomeCanvasItem *item)
shape->icon_shape=NULL;
gnome_canvas_item_hide(item);
gcompris_play_ogg ("gobble", NULL);
gcompris_play_ogg ("sounds/gobble.ogg", NULL);
}
}
......
/* gcompris - smallnumbers.c
*
* Time-stamp: <2006/08/11 19:04:23 bruno>
* Time-stamp: <2006/08/12 03:05:21 bruno>
*
* Copyright (C) 2000 Bruno Coudoin
*
......@@ -473,7 +473,7 @@ static gint smallnumbers_drop_items (GtkWidget *widget, gpointer data)
static void player_win(GnomeCanvasItem *item)
{
gtk_object_destroy (GTK_OBJECT(item));
gcompris_play_ogg ("gobble", NULL);
gcompris_play_ogg ("sounds/gobble.ogg", NULL);
gcomprisBoard->sublevel++;
gcompris_score_set(gcomprisBoard->sublevel);
......
......@@ -1057,7 +1057,7 @@ static gboolean update_timeout_slow() {
/* magnetic detection (dist1) or collision with the whale (dist2 & dist3) */
if ( (dist1 < WHALE_DETECTION_RADIUS || dist2 < WHALE_DETECTION_RADIUS ||dist3 < WHALE_DETECTION_RADIUS)
&& !submarine_destroyed ) {
gcompris_play_ogg("explos", NULL);
gcompris_play_ogg("sounds/crash.ogg", NULL);
gnome_canvas_item_hide(whale);
//item_absolute_move(big_explosion, whale_x, whale_y);
gnome_canvas_item_show(big_explosion);
......@@ -1483,7 +1483,7 @@ static void submarine_explosion() {
submarine_destroyed = TRUE;
gamewon = FALSE;
gcompris_play_ogg("explos", NULL);
gcompris_play_ogg("sounds/crash.ogg", NULL);
/* make the submarine die */
setSpeed(speed_ordered = submarine_horizontal_speed = 0.0);
setBattery(battery = 0.0);
......
......@@ -481,7 +481,7 @@ static void game_won()
board_finished(BOARD_FINISHED_RANDOM);
return;
}
gcompris_play_ogg ("bonus", NULL);
gcompris_play_ogg ("sounds/bonus.ogg", NULL);
}
superbrain_next_level();
}
......
......@@ -490,7 +490,7 @@ static void game_won()
board_finished(BOARD_FINISHED_RANDOM);
return;
}
gcompris_play_ogg ("bonus", NULL);
gcompris_play_ogg ("sounds/bonus.ogg", NULL);
}
target_next_level();
}
......
......@@ -312,7 +312,7 @@ static void game_won()
board_finished(BOARD_FINISHED_RANDOM);
return;
}
gcompris_play_ogg ("bonus", NULL);
gcompris_play_ogg ("sounds/bonus.ogg", NULL);
}
traffic_next_level();
}
......
/* gcompris - wordsgame.c
*
* Time-stamp: <2006/08/11 18:08:59 bruno>
* Time-stamp: <2006/08/12 03:12:06 bruno>
*
* Copyright (C) 2000 Bruno Coudoin
*
......@@ -654,7 +654,7 @@ static gint wordsgame_drop_items (GtkWidget *widget, gpointer data)
static void player_win(LettersItem *item)
{
gcompris_play_ogg ("gobble", NULL);
gcompris_play_ogg ("sounds/gobble.ogg", NULL);
assert(gcomprisBoard!=NULL);
......@@ -685,7 +685,7 @@ static void player_win(LettersItem *item)
return;
}
wordsgame_next_level();
gcompris_play_ogg ("bonus", NULL);
gcompris_play_ogg ("sounds/bonus.ogg", NULL);
}
else
{
......@@ -720,7 +720,7 @@ static void player_win(LettersItem *item)
static void player_loose()
{
gcompris_play_ogg ("crash", NULL);
gcompris_play_ogg ("sounds/crash.ogg", NULL);
}
......
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