def play(loops=0, start=0.0):
    global _frequency, _format, _channels

    mixer._mixer_init_check()

    if not _current_music:
        raise base.error('music not loaded')

    Mix_HookMusicFinished(_endmusic_callback)
    Mix_SetPostMix(_mixmusic_callback, None)
    ready, _frequency, _format, _channels = Mix_QuerySpec()

    if Mix_Linked_Version().is_since((1, 2, 3)):
        volume = Mix_VolumeMusic(-1)
        Mix_FadeInMusicPos(_current_music, loops, 0, start)
        Mix_VolumeMusic(volume)
    else:
        if start:
            raise NotImplementedError(
                'music start position requires SDL_Mixer 1.2.3 or later')
        Mix_PlayMusic(_current_music, loops)
Start the playback of the music stream.
dataset/ETHPy150Open los-cocos/cocos/cocos/audio/pygame/music.py/play