1st Sound Playback Not In Sync

Ive setup sounds for my button presses (extended ui to call a function on press), the first time a sound is played there is a noticeable lag between the press and the sound playing, after that everything works fine.

Is this due to the iPhone powering on the speakers / sound circuits? If so could Corona be made to do that automatically or to play a blank sound after launch (thats something im going to experiment with myself)

Matt [import]uid: 5354 topic_id: 986 reply_id: 300986[/import]

Is it on the device? Do you preload the sound or do you do this inside the frame event?

So far I did not notice this on my IPod 2G. [import]uid: 5712 topic_id: 986 reply_id: 2293[/import]

Im preloading everything and leaving there is a good gap between the load and when a user gets to press a button.

I need to experiment more I think, on OS 4.0 sometimes the app starts and never plays sound.

Im going to test later on today on 3 and 4, 3G / 3GS / iPad

After that I will post here and submit a formal bug [import]uid: 5354 topic_id: 986 reply_id: 2294[/import]

Ive tested now on a 3G(3.1.3) and a 3GS(4 beta1) and the 1st time a sound plays there is a noticeable delay.

Ive noticed this only because its attached to a button and so should be nearly instant (as it is every other time). It only happens on the first play of the sound.

I can also confirm that playing a silent 1sec sound before the main loop doesn’t work (was a fix for apple laptops powering down speakers which when activated again would make an annoying pip sound) [import]uid: 5354 topic_id: 986 reply_id: 2317[/import]

logged as bug case #178 [import]uid: 3 topic_id: 986 reply_id: 2318[/import]

Just thought I would add that I was experiencing the same problem as this until I had music playing first. [import]uid: 5833 topic_id: 986 reply_id: 6819[/import]