Audio not playing on Android

Hi all,

I preload audio like so ( I assume preloading means declaring somewhere in the main scope :

local audioCorrect = media.newEventSound("answerCorrect.wav")

and then play it like so :

function playAudioCorrect()     media.playEventSound(audioCorrect) end

It plays fine in the simulator, but does not play after installing in my android phone. ( LG Nexus 5)

After looking at this page : 

https://docs.coronalabs.com/guide/media/audioSystem/index.html

I have tried .ogg, and .wav but they both have the same problem

Saw a similar question here :

https://forums.coronalabs.com/topic/56586-problem-playing-downloaded-wavmp3-files/?hl=%2Bandroid+%2Baudio

But there wasn’t an answer.

What could be the problem ? 

Thanks in advance!

Hi @wuhu.apps,

How long (how many seconds in time) is your audio file?

Brent

Hi Brent,

It is a ‘beep’, so about 0.5 seconds.

Thanks in advance,

Case sensitivity problem with the filename?

Hi Rob,

goddamn that was it.

I actually saw earlier posts by you asking others to check their case sensitivity, but didn’t think that would be my problem.

That fixed it.

Thanks!

Hi @wuhu.apps,

How long (how many seconds in time) is your audio file?

Brent

Hi Brent,

It is a ‘beep’, so about 0.5 seconds.

Thanks in advance,

Case sensitivity problem with the filename?

Hi Rob,

goddamn that was it.

I actually saw earlier posts by you asking others to check their case sensitivity, but didn’t think that would be my problem.

That fixed it.

Thanks!