Audio wasn't played and callback not called

Hi, 

I’m trying to play an audio file of “.wav” format, that was recorded using media.startRecording, its working fine on simulator, and on iOS device, but on android, no sound played.

 nameplaybackSoundHandle = audio.loadSound( nameSound, system.DocumentsDirectory ) local options = { channel=30, onComplete=SoundFinish } audio.play( nameplaybackSoundHandle,options )

“SoundFinish” method was never called on android, and also sound wasn’t played.

Please help.

Thanks,

Hi @contact130,

This is because Android always records audio to 3GP format which the Corona “audio” library is currently unable to decode. At this time, you can only play back 3GP files via our “media.playSound()” function on Android.

Best regards,

Brent Sorrentino

Hi @contact130,

This is because Android always records audio to 3GP format which the Corona “audio” library is currently unable to decode. At this time, you can only play back 3GP files via our “media.playSound()” function on Android.

Best regards,

Brent Sorrentino