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

**URL:** <https://forums.solar2d.com/t/coronacards-audio-loadsound-cant-load-mp3-android/348128>\
**Category:** CoronaCards for iOS / Android\
**Created:** [July 18, 2018, 9:48pm UTC](https://forums.solar2d.com/t/coronacards-audio-loadsound-cant-load-mp3-android/348128 "2018-07-18T21:48:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akao](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/a/edb3f5/32.png) [@akao](https://forums.solar2d.com/u/akao)\
**Post date:** [July 18, 2018, 9:48pm UTC](https://forums.solar2d.com/t/coronacards-audio-loadsound-cant-load-mp3-android/348128/1 "2018-07-18T21:48:16Z")

</div>

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).&nbsp;

> 07-18 14:35:23.687&nbsp; &nbsp;624&nbsp; 8419 D audio\_hw\_primary: start\_output\_stream: enter: stream(0xeee9a800)usecase(12: audio-ull-playback) devices(0x2)
> 
> 07-18 14:35:23.687&nbsp; &nbsp;624&nbsp; 8419 D audio\_hw\_primary: select\_devices for use case (audio-ull-playback)
> 
> 07-18 14:35:23.687&nbsp; &nbsp;624&nbsp; 8419 D audio\_hw\_primary: select\_devices: out\_snd\_device(2: speaker) in\_snd\_device(0: )
> 
> 07-18 14:35:23.687&nbsp; 1599&nbsp; 1909 I OpenAL&nbsp; : \_SC\_NPROCESSORS\_ONLN=8
> 
> 07-18 14:35:23.687&nbsp; &nbsp;624&nbsp; 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&nbsp; &nbsp;624&nbsp; 8419 D msm8974\_platform: platform\_split\_snd\_device: snd\_device(2) num devices(1) new\_snd\_devices(0)
> 
> 07-18 14:35:23.687&nbsp; &nbsp;624&nbsp; 8419 I msm8974\_platform: platform\_check\_and\_set\_codec\_backend\_cfg: new\_snd\_devices[0] is 2
> 
> 07-18 14:35:23.687&nbsp; &nbsp;624&nbsp; 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&nbsp; &nbsp;624&nbsp; 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&nbsp; &nbsp;624&nbsp; 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&nbsp; &nbsp;624&nbsp; 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&nbsp; &nbsp;624&nbsp; 8419 D audio\_hw\_primary: check\_usecases\_codec\_backend:becf: force routing 1
> 
> 07-18 14:35:23.687&nbsp; &nbsp;624&nbsp; 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&nbsp; &nbsp;624&nbsp; 8419 E msm8974\_platform: platform\_check\_backends\_match: Invalid snd\_device =&nbsp;
> 
> 07-18 14:35:23.687&nbsp; &nbsp;624&nbsp; 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&nbsp; &nbsp;624&nbsp; 8419 E msm8974\_platform: platform\_check\_backends\_match: Invalid snd\_device =&nbsp;
> 
> 07-18 14:35:23.687&nbsp; &nbsp;624&nbsp; 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&nbsp; &nbsp;624&nbsp; 8419 D audio\_hw\_primary: check\_usecases\_codec\_backend:becf: check\_usecases num.of Usecases to switch 0
> 
> 07-18 14:35:23.687&nbsp; &nbsp;624&nbsp; 8419 D hardware\_info: hw\_info\_append\_hw\_type : device\_name = speaker
> 
> 07-18 14:35:23.687&nbsp; &nbsp;624&nbsp; 8419 D audio\_hw\_primary: select\_devices: usecase-\>stream.out-\>bit\_width :16
> 
> 07-18 14:35:23.687&nbsp; &nbsp;624&nbsp; 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&nbsp; &nbsp;624&nbsp; 8419 D audio\_hw\_utils: audio\_extn\_utils\_send\_app\_type\_cfg: usecase-\>out\_snd\_device speaker
> 
> 07-18 14:35:23.687&nbsp; &nbsp;624&nbsp; 8419 D msm8974\_platform: platform\_split\_snd\_device: snd\_device(2) num devices(0) new\_snd\_devices(0)
> 
> 07-18 14:35:23.687&nbsp; &nbsp;624&nbsp; 8419 I audio\_hw\_utils: ULL doesnt need sending app type cfg, returning
> 
> 07-18 14:35:23.687&nbsp; &nbsp;624&nbsp; 8419 D msm8974\_platform: platform\_split\_snd\_device: snd\_device(2) num devices(1) new\_snd\_devices(0)
> 
> 07-18 14:35:23.687&nbsp; &nbsp;624&nbsp; 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&nbsp; &nbsp;624&nbsp; 8419 D ACDB-LOADER: ACDB -\> send\_asm\_topology
> 
> 07-18 14:35:23.687&nbsp; &nbsp;624&nbsp; 8419 D ACDB-LOADER: ACDB -\> ACDB\_CMD\_GET\_AUDPROC\_STREAM\_TOPOLOGY\_ID
> 
> **07-18 14:35:23.687&nbsp; 1599&nbsp; 1761 I SoundDecoder\_SetError: WAV: Not a RIFF file.**
> 
> 07-18 14:35:23.687&nbsp; &nbsp;624&nbsp; 8419 E ACDB-LOADER: Error: ACDB get asm topology returned = -8
> 
> 07-18 14:35:23.688&nbsp; &nbsp;624&nbsp; 8419 D ACDB-LOADER: ACDB -\> send\_adm\_topology
> 
> 07-18 14:35:23.688&nbsp; &nbsp;624&nbsp; 8419 D ACDB-LOADER: ACDB -\> ACDB\_CMD\_GET\_AUDPROC\_COMMON\_TOPOLOGY\_ID
> 
> **07-18 14:35:23.688&nbsp; 1599&nbsp; 1761 I SoundDecoder\_SetError: OGG: Not valid Ogg Vorbis data.**
> 
> **07-18 14:35:23.688&nbsp; 1599&nbsp; 1761 I SoundDecoder\_SetError: Unsupported codec**
> 
> 07-18 14:35:23.688&nbsp; &nbsp;624&nbsp; 8419 E ACDB-LOADER: Error: ACDB get adm topology for acdb id = 15, returned = -8
> 
> 07-18 14:35:23.688&nbsp; &nbsp;624&nbsp; 8419 D ACDB-LOADER: ACDB -\> send\_audtable
> 
> 07-18 14:35:23.688&nbsp; &nbsp;624&nbsp; 8419 D ACDB-LOADER: ACDB -\> ACDB\_CMD\_GET\_AUDPROC\_COMMON\_TABLE\_SIZE
> 
> **07-18 14:35:23.688&nbsp; 1599&nbsp; 1761 I Corona&nbsp; : 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&nbsp; &nbsp;624&nbsp; 8419 D&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: Failed to fetch the lookup information of the device 0000000F&nbsp;
> 
> 07-18 14:35:23.688&nbsp; &nbsp;624&nbsp; 8419 E ACDB-LOADER: Error: ACDB\_CMD\_GET\_AUDPROC\_COMMON\_TABLE\_SIZE Returned = -19
> 
> 07-18 14:35:23.688&nbsp; &nbsp;624&nbsp; 8419 D ACDB-LOADER: ACDB -\> ACDB\_CMD\_GET\_AUDPROC\_COMMON\_TABLE

And subsequently when the audio is being played via&nbsp;

```
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?&nbsp;

Many thanks!

---

<div class="post-metadata">

**Author:** ![akao](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/a/edb3f5/32.png) [@akao](https://forums.solar2d.com/u/akao)\
**Post date:** [July 19, 2018, 3:53pm UTC](https://forums.solar2d.com/t/coronacards-audio-loadsound-cant-load-mp3-android/348128/2 "2018-07-19T15:53:30Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![akao](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/a/edb3f5/32.png) [@akao](https://forums.solar2d.com/u/akao)\
**Post date:** [July 19, 2018, 3:53pm UTC](https://forums.solar2d.com/t/coronacards-audio-loadsound-cant-load-mp3-android/348128/3 "2018-07-19T15:53:30Z")

</div>

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.
