audio.loadSound - on iPad (but not in simulator) some mp3s load, some do not

Hello!

I’m having a problem loading some mp3s using audio.loadSound on the iPad. I have around 43 mp3s available in my app to play, and all of them work in the simulator. However, on my iPad 2 (IOS6), 5 of them aren’t loading. I’m baffled.

Here’s an example of one that loads and plays:
http://r.epeater.com/media/Archive%20-%20Crystalline%20Spiral.mp3

And here’s one that does not load or play (I’m assuming the file can be found, since it work in the simulator):
http://r.epeater.com/media/Archive%20-%20Surand.mp3

Any help would be much appreciated.

Thanks,

  • Bret [import]uid: 168791 topic_id: 31449 reply_id: 331449[/import]

Don’t assume that the file can be found since it works in the simulator. Simulator is case-insensitive with file names. Device is case-sensitive. Check on that. [import]uid: 160496 topic_id: 31449 reply_id: 125687[/import]

Yes, I double checked that. But I’m going to write some code that checks the return value of audio.loadSound and display a message in the app if it fails. I’ll keep you posted. [import]uid: 168791 topic_id: 31449 reply_id: 125689[/import]

Ah, I figured it out, and it was tricky:

I’m using my PC to create the app and using a Mac rented from MacinCloud to do the build. To keep my files synchronized between the two computers, I’m using dropbox.

At some point, I decided to change the capitalization of some of the .mp3 files. For example, I changed “Archive - surand.mp3” to “Archive - Surand.mp3”. Dropbox never updated the files on the Mac with the modified filenames! I suppose it considered the filenames the same. Bad dropbox! Bad! Ha ha ha.

So, Mike, you were dead right. Thanks for your help.

Cheers,

  • Bret

[import]uid: 168791 topic_id: 31449 reply_id: 125692[/import]

Don’t assume that the file can be found since it works in the simulator. Simulator is case-insensitive with file names. Device is case-sensitive. Check on that. [import]uid: 160496 topic_id: 31449 reply_id: 125687[/import]

Yes, I double checked that. But I’m going to write some code that checks the return value of audio.loadSound and display a message in the app if it fails. I’ll keep you posted. [import]uid: 168791 topic_id: 31449 reply_id: 125689[/import]

Ah, I figured it out, and it was tricky:

I’m using my PC to create the app and using a Mac rented from MacinCloud to do the build. To keep my files synchronized between the two computers, I’m using dropbox.

At some point, I decided to change the capitalization of some of the .mp3 files. For example, I changed “Archive - surand.mp3” to “Archive - Surand.mp3”. Dropbox never updated the files on the Mac with the modified filenames! I suppose it considered the filenames the same. Bad dropbox! Bad! Ha ha ha.

So, Mike, you were dead right. Thanks for your help.

Cheers,

  • Bret

[import]uid: 168791 topic_id: 31449 reply_id: 125692[/import]