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.
我只是想在无限循环中连续播放音乐,直到单击按钮。它工作正常但是,例如:我的声音文件是 5 秒。每 5 秒后有一个暂停,音乐再次播放。有没有办法阻止这种情况并不间断地播放音乐?我已经为那个无限循环使用了 Setlooping(true) 。
您的问题是您的音乐文件可能在结尾(或开头)包含短暂的停顿。您需要在声音编辑器中编辑此文件,使其更适合连续播放。
编辑
需要明确的是,您是要循环播放一个特定的声音文件,还是一般的任何声音文件?