iPhone AVAudioPlayer loop stuttering?

白昼怎懂夜的黑 提交于 2019-12-24 07:24:50

问题


I have a sound that is about 2 seconds long which I have set it's it's numberOfLoops property to -1, but it has a .5 second lag between loops i want the sound to fade into itself when it is looping. Help please!


回答1:


You can try to use some low-level API to work with sound.I had good results using OpenAL on the iPhone. Also ideal looping is quiet hard, because your audio file should have, for example almost equivalent parameters(frequency, for example) to make people not to hear when the file is played from the beginning again.



来源:https://stackoverflow.com/questions/1931685/iphone-avaudioplayer-loop-stuttering

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