Example #1
0
 def fadeout(self, time):
     """ fadeout(time) -> None
     stop playback after fading channel out
     """
     check_mixer()
     sdl.Mix_FadeOutChannel(self.chan, time)
Example #2
0
def fadeout(time):
    """ fadeout(time) -> None
    fade out the volume on all sounds before stopping
    """
    check_mixer()
    sdl.Mix_FadeOutChannel(-1, time)