audio not working - subfolder "sounds" (was wav vs mp3)

I’m using build 772 and seem to have an issue with audio, seems code that was working on older builds is now not playing audio in mp3 format but wav plays fine. Anyone have any idea why?
audio.loadSound(“test.wav”) works
audio.loadSound(“test.mp3”) doesnt
[import]uid: 91921 topic_id: 23775 reply_id: 323775[/import]

Hey dr_stripes,

have you tried:

audio.loadStream(“test.mp3”);

[import]uid: 135765 topic_id: 23775 reply_id: 95630[/import]

Just seams strange that this would stop working all of a sudden with a new version of corona… [import]uid: 91921 topic_id: 23775 reply_id: 95631[/import]

So did loadStream help, or no?

Sometimes things change between versions; check out release notes, are there mentions of audio changes? If so, that could be why.

Peach :slight_smile: [import]uid: 52491 topic_id: 23775 reply_id: 95644[/import]

loadStream also does not play mp3 files. Seems odd that firstly it was working before and second it still works but only for wav not mp3 files. [import]uid: 91921 topic_id: 23775 reply_id: 95655[/import]

is the issue in the simulator, the device, or both? [import]uid: 135765 topic_id: 23775 reply_id: 95661[/import]

Only on device. [import]uid: 91921 topic_id: 23775 reply_id: 95663[/import]

I had an issue on my android tablet earlier that required me to specify the channel:

[lua] audio.play(soundtrack,{channel=1} ); [/lua]

Without the channel specified, it would still work on my Sony Experia, iphone, and iPad.

I am using an older build, but maybe… :slight_smile: [import]uid: 135765 topic_id: 23775 reply_id: 95664[/import]

Still doesn’t seem right that it works on simulator and also works on a .wav file. The ONLY difference is the format of the sound file. [import]uid: 91921 topic_id: 23775 reply_id: 95666[/import]

Is this happening in build 704 and/or in the latest daily build?

I tested 704 and found it worked fine for me so just want to get clarification to make sure is not an issue with the file itself.

If it is not an issue in 704 but is in the latest daily can you please file a bug report using the link in the upper left? [import]uid: 52491 topic_id: 23775 reply_id: 95673[/import]

So I’ve done some testing with other builds and it is not working properly with them either.

I’ve also tried changing the format of the sounds which did not help.

I’ve also tried playing one of the mp3 files in a place where the wav files are playing correctly and it plays fine so the issue seems to in fact lie within some of my other code.

The only difference is these files are called from an onRelease function of a ui.newButton object. Seems my issue is deeper seeded perhaps behind some of that code. It works fine on the simulator though so it is still a strange one. [import]uid: 91921 topic_id: 23775 reply_id: 96994[/import]

I think I’ve narrowed it down.

soundButtonSound = audio.loadSound(" sounds2 /cat.mp3")
soundButtonChannel = audio.play( soundButtonSound )
works

soundButtonSound = audio.loadSound(“sounds/cat.mp3”)
soundButtonChannel = audio.play( soundButtonSound )
doesn’t

Seems there might be a bug with certain folder names??? [import]uid: 91921 topic_id: 23775 reply_id: 97015[/import]

have filed this as a big report [import]uid: 91921 topic_id: 23775 reply_id: 97016[/import]

Hey dr_stripes, what is the bug number please? [import]uid: 84637 topic_id: 23775 reply_id: 97026[/import]

Bug 13251 [import]uid: 91921 topic_id: 23775 reply_id: 97029[/import]