-
Seamless audio looping?
So, I have in my game a couple looping sounds (rain / wind) that have a noticeable gap in the audio when it loops. Is there a way to get sounds to loop seamlessly on iOS?
Anyone else notice a gap in the sound when it loops?
I'm using an ipod touch 4th gen.
-
I am pretty sure we got the music looping seamlessly in Miballs. I will have to double check.
-
It could help to specify which kind of sound you're actually playing, MP3 or Wav?
-
If it's MP3 and it's loopable (as in no decay at the end/attack at the start) it loops seamlessly.
-
-
I have no problem with the loop in IOS (MP3 or WAV).
-
MP3 files are not certain to loop without issue. In fact I always find them to loop with stutters. Use a WAV file and make sure you set the looing to 0.
-
I've been playing around with this some more, and I still can't seem to get the sound to loop seamlessly. Both .wav and .mp3 behave this way. It loops fine when I run it on the PC, but on my iPod touch 4, there's a very short but noticeable gap in the audio.
Maybe I should post an example.mfa so someone else could try it on their system?
-
Working around this bug, I noticed another issue/bug with the audio.
If a sound, let's call it sample1.wav, is playing: playing sample1.wav again will stop the first instance of the sound and restart it from the beginning.
I'm surprised no one else has ever noticed this looping issue.
Just for reference, I'm using osx 10.6, an iPod touch 4 8gb with iOS 5.0, and attempting to loop .wav files. The bitrate of the .wav makes no difference. I'm simply using the condition: play and loop 0 times.
I haven't tried the latest ios exporter betas yet, so maybe that's the problem?
-
Well, it is not an issue, it is the way the sounds are programmed for iOS. At the time I did the sound player, I did not find any satisfactory solution to play thr same sound simultaneously...
I'll rework on this.