- pygame.mixer.stop()
-
- def stop_all_actions(self, **kwargs):
- self.key.mapping.stop_all_running()
-
- def volume(self, music = None, value = 100, **kwargs):
- if music is not None:
- music.set_volume(value)
- else:
- pass
-
- def wait(self, duration = 0, **kwargs):
- # FIXME: Make it stoppable
- # http://stackoverflow.com/questions/29082268/python-time-sleep-vs-event-wait
- time.sleep(duration)
-
- def command_print(self, command = "", **kwargs):
- return "running command {}".format(command)
-
- def pause_print(self, music = None, **kwargs):
- if music is not None:
- return "pausing {}".format(music.filename)
- else:
- return "pausing all musics"
-
- def play_print(self, music = None, fade_in = 0, start_at = 0,
- restart_if_running = False, volume = 100, **kwargs):
- message = "starting "
- if music is not None:
- message += music.filename