[gcompris] Bugfix: Play the audio level number now works with level > 9
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris] Bugfix: Play the audio level number now works with level > 9
- Date: Sun, 16 Jun 2013 11:01:35 +0000 (UTC)
commit 1dd7029c21a197fff4461e2b302a2a9ca282cc74
Author: GunChleoc <fios foramnagaidhlig net>
Date: Fri May 17 11:11:10 2013 +0100
Bugfix: Play the audio level number now works with level > 9
src/gcompris/bar.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gcompris/bar.c b/src/gcompris/bar.c
index 45a545a..be6c95c 100644
--- a/src/gcompris/bar.c
+++ b/src/gcompris/bar.c
@@ -595,6 +595,12 @@ gc_bar_play_level_voice(int level)
g_free(number_str);
number_str = level_str;
}
+ else
+ {
+ gchar *old_str = number_str;
+ number_str = g_strdup_printf("%s.ogg", old_str);
+ g_free(old_str);
+ }
gchar *audio_str = g_strdup_printf("voices/$LOCALE/alphabet/%s", number_str);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]