summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-01-05 21:11:59 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-01-05 21:11:59 +0000
commit5fe31e4efaeedf8b2e2ce22fb27dfac7f7395ec8 (patch)
tree4fbf27102a31a0acfc1a37012ada0599b180df04
parentFix scheduling of play event (diff)
downloadtoy-5fe31e4efaeedf8b2e2ce22fb27dfac7f7395ec8.zip
Ensure no sound escapes between activities
-rw-r--r--scripts/toy.groovy1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy
index 7e529ae..e927151 100644
--- a/scripts/toy.groovy
+++ b/scripts/toy.groovy
@@ -1062,6 +1062,7 @@ def sessionPlay = {
def apply = { activitity, use = null ->
if (!activitity) return;
def val = (Float)activitity();
+ playBackgroundSound(null);
if (use) {
use(val);
}