Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix android mixer implementation: play() must return the channel used…

… as pygame does. Otherwise, on_stop() will be never called in kivy.
  • Loading branch information...
commit 8308fe7c0df0b4627e19762c133315adaaf000ed 1 parent 0a00557
@tito tito authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 recipes/android/src/android_mixer.py
View
4 recipes/android/src/android_mixer.py
@@ -194,7 +194,9 @@ def __init__(self, what):
sounds[self.serial] = self
def play(self, loops=0, maxtime=0, fade_ms=0):
- find_channel(True).play(self, loops=loops)
+ channel = find_channel(True)
+ channel.play(self, loops=loops)
+ return channel
def stop(self):
for i in range(0, num_channels):
Please sign in to comment.
Something went wrong with that request. Please try again.