You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed when setting SoundManager.loop_music = True (which I wish would loop the currently played track, but I can hack that in) that when the track gets stopped, because of .bind(on_stop=on_track_stop), it recurses until we hit a RuntimeError: Maximum recursion depth exceeded. Alternatively, this causes random tracks to get played and stopped randomly if you have more than one track in SoundManager.music_dict.
The text was updated successfully, but these errors were encountered:
Not really a solution, but I created a new function SoundManager.play_track_to_stop() without the if self.current_track is not None check, which I call if self.loop_music is True in self.on_track_stop.
I noticed when setting
SoundManager.loop_music = True
(which I wish would loop the currently played track, but I can hack that in) that when the track gets stopped, because of.bind(on_stop=on_track_stop)
, it recurses until we hit aRuntimeError: Maximum recursion depth exceeded
. Alternatively, this causes random tracks to get played and stopped randomly if you have more than one track in SoundManager.music_dict.The text was updated successfully, but these errors were encountered: