pyglet player sound

Player = pyglet.media.Player()

# our event handling function
def on_eos():
    print("on player eos")

Player.push_handlers(on_eos)

原文地址:https://www.cnblogs.com/pythonClub/p/10241255.html