CoronaCards audio.loadSound() can't load mp3 (Android)

We are testing CoronaCards for a project we are doing and running into an issue where I have a line of code like this:

local sound2ID = audio.loadSound( "SFX\_MenuShow.mp3" ) 

It generates the following error on adb logcat (see my highlight toward the end of the log). 

07-18 14:35:23.687   624  8419 D audio_hw_primary: start_output_stream: enter: stream(0xeee9a800)usecase(12: audio-ull-playback) devices(0x2)

07-18 14:35:23.687   624  8419 D audio_hw_primary: select_devices for use case (audio-ull-playback)

07-18 14:35:23.687   624  8419 D audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: )

07-18 14:35:23.687  1599  1909 I OpenAL  : _SC_NPROCESSORS_ONLN=8

07-18 14:35:23.687   624  8419 I msm8974_platform: platform_check_and_set_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 12 device (speaker)

07-18 14:35:23.687   624  8419 D msm8974_platform: platform_split_snd_device: snd_device(2) num devices(1) new_snd_devices(0)

07-18 14:35:23.687   624  8419 I msm8974_platform: platform_check_and_set_codec_backend_cfg: new_snd_devices[0] is 2

07-18 14:35:23.687   624  8419 I msm8974_platform: platform_check_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 12 device (speaker)

07-18 14:35:23.687   624  8419 D msm8974_platform: platform_check_codec_backend_cfg:napb: (0) - (low-latency-playback)id (1) sr 48000 bw (16) ch (2) device speaker

07-18 14:35:23.687   624  8419 D msm8974_platform: platform_check_codec_backend_cfg:becf: afe: playback on codec device not supporting native playback set default Sample Rate(48k)

07-18 14:35:23.687   624  8419 I msm8974_platform: platform_check_codec_backend_cfg:becf: afe: Codec selected backend: 0 updated bit width: 16 and sample rate: 48000

07-18 14:35:23.687   624  8419 D audio_hw_primary: check_usecases_codec_backend:becf: force routing 1

07-18 14:35:23.687   624  8419 D audio_hw_primary: check_usecases_codec_backend:becf: (63) check_usecases curr device: speaker, usecase device:speaker backends match 1

07-18 14:35:23.687   624  8419 E msm8974_platform: platform_check_backends_match: Invalid snd_device = 

07-18 14:35:23.687   624  8419 D audio_hw_primary: check_usecases_codec_backend:becf: (63) check_usecases curr device: speaker, usecase device: backends match 0

07-18 14:35:23.687   624  8419 E msm8974_platform: platform_check_backends_match: Invalid snd_device = 

07-18 14:35:23.687   624  8419 D audio_hw_primary: check_usecases_codec_backend:becf: (63) check_usecases curr device: speaker, usecase device: backends match 0

07-18 14:35:23.687   624  8419 D audio_hw_primary: check_usecases_codec_backend:becf: check_usecases num.of Usecases to switch 0

07-18 14:35:23.687   624  8419 D hardware_info: hw_info_append_hw_type : device_name = speaker

07-18 14:35:23.687   624  8419 D audio_hw_primary: select_devices: usecase->stream.out->bit_width :16

07-18 14:35:23.687   624  8419 D soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_id 12 of type 0 for Event 3, with Raise=0

07-18 14:35:23.687   624  8419 D audio_hw_utils: audio_extn_utils_send_app_type_cfg: usecase->out_snd_device speaker

07-18 14:35:23.687   624  8419 D msm8974_platform: platform_split_snd_device: snd_device(2) num devices(0) new_snd_devices(0)

07-18 14:35:23.687   624  8419 I audio_hw_utils: ULL doesnt need sending app type cfg, returning

07-18 14:35:23.687   624  8419 D msm8974_platform: platform_split_snd_device: snd_device(2) num devices(1) new_snd_devices(0)

07-18 14:35:23.687   624  8419 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 15, path = 0, app id = 0x11137, sample rate = 48000

07-18 14:35:23.687   624  8419 D ACDB-LOADER: ACDB -> send_asm_topology

07-18 14:35:23.687   624  8419 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID

07-18 14:35:23.687  1599  1761 I SoundDecoder_SetError: WAV: Not a RIFF file.

07-18 14:35:23.687   624  8419 E ACDB-LOADER: Error: ACDB get asm topology returned = -8

07-18 14:35:23.688   624  8419 D ACDB-LOADER: ACDB -> send_adm_topology

07-18 14:35:23.688   624  8419 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID

07-18 14:35:23.688  1599  1761 I SoundDecoder_SetError: OGG: Not valid Ogg Vorbis data.

07-18 14:35:23.688  1599  1761 I SoundDecoder_SetError: Unsupported codec

07-18 14:35:23.688   624  8419 E ACDB-LOADER: Error: ACDB get adm topology for acdb id = 15, returned = -8

07-18 14:35:23.688   624  8419 D ACDB-LOADER: ACDB -> send_audtable

07-18 14:35:23.688   624  8419 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE

07-18 14:35:23.688  1599  1761 I Corona  : WARNING: /data/user/0/com.example.app/files/coronaResources/CoronaCardApp/main.lua:40: audio.loadSound() failed to create sound 'SFX_MenuShow.mp3’

07-18 14:35:23.688   624  8419 D         : Failed to fetch the lookup information of the device 0000000F 

07-18 14:35:23.688   624  8419 E ACDB-LOADER: Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19

07-18 14:35:23.688   624  8419 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE

And subsequently when the audio is being played via 

audio.play(sound2ID);

No sound is heard, and we don’t see anything in adb logcat. We haven’t tested this in iOS to see if has the same issue. Is this a bug? Or something that we need to figure out a way to deal with? 

Many thanks!

For those who are interested, I just tested the same thing on iOS, and it seems that MP3 plays fine on iOS. It seems that this issue is strictly Android.

For those who are interested, I just tested the same thing on iOS, and it seems that MP3 plays fine on iOS. It seems that this issue is strictly Android.