best way to audio capture for 5 secs ?

Newbie question:

Whats the best way to do an audio capture of exactly 10 seconds ?

a while do loop checking event.time

or

timer.performWithDelay ?

[import]uid: 97524 topic_id: 19253 reply_id: 319253[/import]

The timer would be less intensive (and much simpler for a newbie) so I’d go with that.

There’s an example of a recorded in the SampleCode file that comes with the CoronaSDK download - maybe have a play with that using a timer rather than the button :slight_smile:

Peach [import]uid: 52491 topic_id: 19253 reply_id: 74325[/import]

Thanks Peach.

I’m already using the audio capture example in the TEMPLATE section of the website and I’ve followed your advice and am using the system timer.

[import]uid: 97524 topic_id: 19253 reply_id: 74386[/import]