[gcompris] music activities, fixed reference to the silence file.



commit 3e3452481955d177a0065685db975c18b8be5d94
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Tue Oct 30 17:57:08 2012 +0100

    music activities, fixed reference to the silence file.

 src/explore-activity/explore.py         |    6 +++---
 src/note_names-activity/note_names.py   |    2 +-
 src/play_piano-activity/play_piano.py   |    2 +-
 src/play_rhythm-activity/play_rhythm.py |    2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/explore-activity/explore.py b/src/explore-activity/explore.py
index 6d43c4c..e4d0b45 100644
--- a/src/explore-activity/explore.py
+++ b/src/explore-activity/explore.py
@@ -98,7 +98,7 @@ dialogue to\nenable the sound."), None)
                                         self.gcomprisBoard.canvas.get_root_item())
 
         # silence any currently playing music
-        gcompris.sound.play_ogg('/boards/sounds/silence1s.ogg')
+        gcompris.sound.play_ogg('boards/sounds/silence1s.ogg')
 
         level = self.gcomprisBoard.level
 
@@ -238,7 +238,7 @@ dialogue to\nenable the sound."), None)
             location_rootitem.remove()
 
             # silence any currently playing music
-            gcompris.sound.play_ogg('/boards/sounds/silence1s.ogg')
+            gcompris.sound.play_ogg('boards/sounds/silence1s.ogg')
 
             # All the items have been seen, let's start the level 2
             if self.locationSeen == len(self.sectionNames):
@@ -534,7 +534,7 @@ dialogue to\nenable the sound."), None)
                 self.data.write(configfile)
 
         # silence any currently playing music
-        gcompris.sound.play_ogg('/boards/sounds/silence1s.ogg')
+        gcompris.sound.play_ogg('boards/sounds/silence1s.ogg')
         self.rootitem.remove()
         if hasattr(self, 'location_rootitem'):
             self.location_rootitem.remove()
diff --git a/src/note_names-activity/note_names.py b/src/note_names-activity/note_names.py
index 4b3d2a6..7e93ecc 100644
--- a/src/note_names-activity/note_names.py
+++ b/src/note_names-activity/note_names.py
@@ -67,7 +67,7 @@ class Gcompris_note_names:
         self.saved_policy = gcompris.sound.policy_get()
         gcompris.sound.policy_set(gcompris.sound.PLAY_AND_INTERRUPT)
         gcompris.sound.pause()
-        gcompris.sound.play_ogg('//boards/sounds/silence1s.ogg')
+        gcompris.sound.play_ogg('boards/sounds/silence1s.ogg')
         # Set a background image
         gcompris.set_default_background(self.gcomprisBoard.canvas.get_root_item())
 
diff --git a/src/play_piano-activity/play_piano.py b/src/play_piano-activity/play_piano.py
index a7ca957..d80d30b 100644
--- a/src/play_piano-activity/play_piano.py
+++ b/src/play_piano-activity/play_piano.py
@@ -56,7 +56,7 @@ class Gcompris_play_piano:
         self.saved_policy = gcompris.sound.policy_get()
         gcompris.sound.policy_set(gcompris.sound.PLAY_AND_INTERRUPT)
         gcompris.sound.pause()
-        gcompris.sound.play_ogg('//boards/sounds/silence1s.ogg')
+        gcompris.sound.play_ogg('boards/sounds/silence1s.ogg')
 
         # Set the buttons we want in the bar
         gcompris.bar_set(gcompris.BAR_LEVEL)
diff --git a/src/play_rhythm-activity/play_rhythm.py b/src/play_rhythm-activity/play_rhythm.py
index 35f4e78..2d609f2 100644
--- a/src/play_rhythm-activity/play_rhythm.py
+++ b/src/play_rhythm-activity/play_rhythm.py
@@ -217,7 +217,7 @@ dialogue to\nenable the sound."), None)
             self.metronomePlaying = True
         else:
             self.metronomePlaying = False
-            gcompris.sound.play_ogg('//boards/sounds/silence1s.ogg')
+            gcompris.sound.play_ogg('boards/sounds/silence1s.ogg')
 
     def playClick(self):
         if self.metronomePlaying:



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