Looping AVAudioPlayer without a break

I record sound using AVAudioRecorder and then try to play sound using AVAudioPlayer. I try to make the sound loop forever, but the sound has a short gap between the loops. I tried writing an AVAudioRecorder record to all possible file types, but I cannot find something that will provide a seamless loop. Thanks.

+8
objective-c avaudioplayer avaudiorecorder
source share
1 answer

This is a great article that helped me eliminate loops in my AVAudioPlayer implementation: http://forums.macrumors.com/showthread.php?t=640862

the essence of the message is that compressed sound adds an empty sound to even out the length of the sample to an even multiple of 1024. Using uncompressed audio or sound that is specially output for loop purposes eliminates the failure.

+6
source share

All Articles