Permalink
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...
1 parent 0a00557 commit 8308fe7c0df0b4627e19762c133315adaaf000ed @tito tito committed Feb 13, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 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):

0 comments on commit 8308fe7

Please sign in to comment.