I'm recording a sound using AVAudioRecorder and then attempting to play back the sound using AVAudioPlayer. I'm trying to get the sound to loop indefinitely, but the sound has a short gap in between loops. I've tried recording the AVAudioRecorder recording to all possible file types, yet I can't find something that will allow seamless looping. Thanks.
This is a great post that helped me eliminate loops in my AVAudioPlayer implementation: http://forums.macrumors.com/showthread.php?t=640862
the gist of the post is that compressed audio adds blank sound to pad out the length of the sample to an even multiple of 1024. Using uncompressed audio, or audio that is specifically output for the purpose of looping will eliminate the glitch.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With