[gcompris] lang: now play the sounds in interrupt mode, better user experience.
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris] lang: now play the sounds in interrupt mode, better user experience.
- Date: Thu, 2 Feb 2012 22:01:28 +0000 (UTC)
commit 0b2adb1bb7df262e4dcd45ae03b059b68f5af5e0
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Sun Jan 29 19:22:22 2012 +0100
lang: now play the sounds in interrupt mode, better user experience.
src/lang-activity/lang.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/lang-activity/lang.py b/src/lang-activity/lang.py
index 1020fc6..4954fc2 100644
--- a/src/lang-activity/lang.py
+++ b/src/lang-activity/lang.py
@@ -80,6 +80,8 @@ class Gcompris_lang:
def start(self):
print "lang start"
+ self.saved_policy = gcompris.sound.policy_get()
+ gcompris.sound.policy_set(gcompris.sound.PLAY_AND_INTERRUPT)
# init config to default values
self.config_dict = self.init_config()
@@ -125,6 +127,7 @@ class Gcompris_lang:
self.displayLesson( self.currentLesson )
def end(self):
+ gcompris.sound.policy_set(self.saved_policy)
if self.currentExercise:
self.currentExercise.stop()
# Remove the root item removes all the others inside it
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]