使用简单音频引擎的声音循环之间有轻微暂停 [英] Slight pause between sound loop with Simple Audio Engine
问题描述
使用 playBackgroundMusic loop:YES
在简单音频引擎中播放背景音乐时,在音频循环回到开头并重新开始之前,似乎有一点点延迟。有什么办法防止这种轻微的暂停?
When playing background music in Simple Audio Engine with playBackgroundMusic loop:YES
, there seems to be a slight delay before the audio loops back to the beginning and starts over again. Is there any way to prevent this slight pause?
推荐答案
暂停实际上是MP3编码/压缩算法的一个假象。有一些方法可以通过对流和第一帧的最后一帧进行一些计算来抑制暂停。一些软件工具存在。
The pause is actually an artefact of the MP3 encoding/compression algorithms. There are ways to suppress the pause, by doing some math on the 'last frame' of the stream and the first frame. Some software tools exist for that. I ended up using Winamp pro for that purpose, using the built-in LAME encoder.
有关这方面的更多信息,请查看此处
For more information on this , look here
这篇关于使用简单音频引擎的声音循环之间有轻微暂停的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!