EventSound stops after 750 repetitions on iPhone

I am having problem with “EventSound” sample app from sample codes. It runs fine in simulator, but it dies regularly after 750 cycles (approximately 12.5 min) on iPhone (iPhone 3GS 32 GB, System 3.1.3). I tested various variations and it seems to me, that

timer.performWithDelay( 1000, playBeep, 0 )

Always works like

timer.performWithDelay( 1000, playBeep, 750 )

regardless what “playBeep” function is (I tried some text, changing color, etc., it’s always the same). I really need some time with higher number of repetitions then 750, is there any way around or is it just my iPhone? [import]uid: 5394 topic_id: 752 reply_id: 300752[/import]

Petr

can you send us code with the sound file you are using, etc, at support@anscamobile.com?

C [import]uid: 24 topic_id: 752 reply_id: 1518[/import]

I did. As you can see, strangely enough, it’s original sample code, unchanged.
Petr [import]uid: 5394 topic_id: 752 reply_id: 1530[/import]

CODE WHICH DOESN’T WORK PROPERLY (stops after 750 repetitions):

local soundID = media.newEventSound( “beep.caf” )
media.playEventSound( soundID )

local playBeep = function()
media.playEventSound( soundID )
end

timer.performWithDelay( 1000, playBeep, 0 )
CODE WITH APPROXIMATELY THE SAME FUNCTIONALITY (doesn’t stop after 750 repetitions):

local beep = media.newEventSound( “beep.caf” )
local i = 0
local limit = 30

local count = function(event)
i = i + 1

if i>limit then
media.playEventSound( beep )
i = 0
end

end

Runtime:addEventListener( “enterFrame”, count )

The time interval will be different on different devices. It can be improved by using system time I guess, but still, it doesn’t reach the precision of the Timer. It’s ok for my purpose now, but it would be good to have a precise solution. [import]uid: 5394 topic_id: 752 reply_id: 1561[/import]

(Logged as bug #121) [import]uid: 3007 topic_id: 752 reply_id: 1993[/import]