looping sound on iOS

Monkey Targets Forums/iOS/looping sound on iOS

aonyn(Posted 2011) [#1]
Hi all,

I nearly have my first monkey app complete, in fact it is complete, and I am now trying to perfect it.

There is one issue I have on iOS, which the same code had no problem at all with glfw.
The problem is with looping sound.
Using the same code, and same sound samples, in glfw, my sounds loop seamlessly.
In iOS, I get a click between loops, worse on some sounds than others.
All my samples are 44000 16bit stereo wav and approximately 1 second in length.

Is this a known issue in iOS?
Is there anything I can try to get the sounds to loop more smoothly in iOS?

Thanks in advance.
Dave.


aonyn(Posted 2011) [#2]
Hi All,

I have experimented with this, and have come to the conclusion so far that this is an issue worth posting in the bug forum, so I will add this there, with some sample code.

Regards,
Dave


Claymatic(Posted 2011) [#3]
Do you get a click when playing a completely blank (silent) sample? Are your samples zeroed at both ends?


aonyn(Posted 2011) [#4]
Hi Claymatic,

Thanks for the reply, I will check again, but I am fairly certain that they are, I looped them be splitting at a 0 point, swapping ends, and crossfading in the center.

They do play seamlessly as I said in other environments.

Also, Mark seemed to indicate he knows the problem, and will be fixing it, so I am fairly confident it is not my samples.

Thanks for the feedback, and I will take another look, just to cross that off the possibility list.

regards,
Dave


aonyn(Posted 2011) [#5]
Hi All,

Just FYI, version 38 fixed this problem for me (in case anyone was following)

Thanks again Mark.

regards,
Dave