Slight pause between sound loop with Simple Audio Engine

自闭症网瘾萝莉.ら 提交于 2019-12-12 04:09:13

问题


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?


回答1:


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




回答2:


I try The MP3Loop utility and it really helped me. Mp3 files after converting with this utility played as background music with loop without any delay. But it is only for Windows. http://www.compuphase.com/mp3/mp3loops.htm



来源:https://stackoverflow.com/questions/10954903/slight-pause-between-sound-loop-with-simple-audio-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!