コード例 #1
0
def get_busy():
    """get_busy(): return bool

       test if any sound is being mixed"""
    if not sdl.SDL_WasInit(sdl.SDL_INIT_AUDIO):
        return False
    return sdl.Mix_Playing(-1) != 0
コード例 #2
0
 def get_busy(self):
     check_mixer()
     return sdl.Mix_Playing(self.chan) != 0