Error loading sound

I use 2 mp3 sounds in my app: boom.mp3, and wing.mp3 . When I try to load them, one is loaded successfully, and the other returns null.

[lua]local wingSound = audio.loadSound( “wing.mp3”) --returns nil

local boomSound = audio.loadSound( “boom.mp3”) --returns the sound[/lua]

I have both sounds in the dirctory of the main.lua, and I get this error in the terminal: 

Warning: audio error: MPG123: Message: Feed me more input data!Warning: audio.loadSound: failed to create sound (wing.mp3)

Why is this happening?

—Edit—

I’m working on a Windows 8 PC.

I’m working with Corona 2014.2189 (version 3.0)

The error is on both simulator and my android device

  1. Thanks for using code blocks.  You’re awesome.  More folks should use them.
  2. Your code seems to be loading the same file twice into a same named local variable.  Is that a typo?  I am assuming the answer is, “Yes.”
  3. Be cautious about loading multiple MP3 files.  Two is probably fine, but some hardware has limits on how many can be simultaneously loaded.
  4. Consider reprocessing your MP3 file (the problem one) with Audacity.  You may have an encoding problem with one of your files.   You can load it in Audacity and export it as an MP3 again.
  5. Please give us the following details:
  • Windows or OS X,
  • Corona SDK version (i.e. 2014.1234 )
  • Place you’re seeing the error (Simulator, device, …)
  • If you’re seeing the issue on a device, what device?  

Cheers,

Ed

  1. Thanks for using code blocks.  You’re awesome.  More folks should use them.
  2. Your code seems to be loading the same file twice into a same named local variable.  Is that a typo?  I am assuming the answer is, “Yes.”
  3. Be cautious about loading multiple MP3 files.  Two is probably fine, but some hardware has limits on how many can be simultaneously loaded.
  4. Consider reprocessing your MP3 file (the problem one) with Audacity.  You may have an encoding problem with one of your files.   You can load it in Audacity and export it as an MP3 again.
  5. Please give us the following details:
  • Windows or OS X,
  • Corona SDK version (i.e. 2014.1234 )
  • Place you’re seeing the error (Simulator, device, …)
  • If you’re seeing the issue on a device, what device?  

Cheers,

Ed

Thanks Ed 
resaving the files did the job 

Thanks Ed 
resaving the files did the job