Audio Recording Delay on S3 and S4

Hi, 

I’m trying to record an audio on android platform, on Nexus 7 (OS version 4.2.1) and prior versions of OS , its working perfectly, but on Samsung Galaxy S3(OS Version 4.1.2) and S4 there is a visible delay before recording start, so some portion of the sound is cut off, and its very bad user experience.
I have tried with .wav and .3gp formats , but delay was same for both.

Please help me on how to resolve this issue.

Thanks,

Hi @contact130,

Can you show some of your code involving this? Unless it has changed since I checked last, Android only records in 3gp format, and to play it back in Corona, you’ll need to use the “media” library playback methods, not the “audio” library functions. Anyway, please provide some more details and I’ll try to help.

Best regards,

Brent

Hi Brent, thanks for the reply, 

I’m using code from this sample
http://web-b1.anscamobile.com/content/simple-audio-recorder

Please let me know

Thanks,

Hi @contact130,

Can you please test out the sample code in your local CoronaSDK application folder?

CoronaSDK > SampleCode > Media > SimpleAudioRecorder

I think some changes have been made to that, versus the only you linked to.

Best regards,

Brent

Hi @contact130,

Can you show some of your code involving this? Unless it has changed since I checked last, Android only records in 3gp format, and to play it back in Corona, you’ll need to use the “media” library playback methods, not the “audio” library functions. Anyway, please provide some more details and I’ll try to help.

Best regards,

Brent

Hi Brent, thanks for the reply, 

I’m using code from this sample
http://web-b1.anscamobile.com/content/simple-audio-recorder

Please let me know

Thanks,

Hi @contact130,

Can you please test out the sample code in your local CoronaSDK application folder?

CoronaSDK > SampleCode > Media > SimpleAudioRecorder

I think some changes have been made to that, versus the only you linked to.

Best regards,

Brent