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.
我在 Html5 游戏中遇到了一些循环问题。
我有一个想要循环播放的声音(4-5 秒)。 但在每个循环之间,我可以听到声音停止(0.5 秒)并重播。
我读到“MP3 在音频文件的开头有 0.25 秒的静音。”,并尝试了这个:
在 T = 0,25 时为每个样本启动循环和声音,因此预加载了所有音频文件,但在 0.25 秒后播放和循环。”
但是,mp3 ogg 或 wave(Firefox 和 chrome)仍然存在延迟
有人可以帮我找到解决方案吗?