Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用这个程序来播放 na 音频文件:
音乐 = pyglet.resource.media('file.wav') music.play()
pyglet.app.run()
我有一个问题:在这个程序之后我什么都做不了。播放时如何停止音频文件?它看起来像一个循环。
我认为您必须为on_eos事件添加一个事件监听器。
例如,看看pyglet Google group上的这个线程。