Hey.
I’ve been having some trouble using Corona SDK.
on several projects i’ve been working on, I sometimes can’t load certain asset files.
first it was a png and now I can’t seem to load 4 wav/mp3 files although the 5th loads perfectly and they are all made with the same program (audacity) and are in the same directory.
My setup is a Mac mini, osx 10.6.6, latest corona sdk.
this is my code -
if (isAndroid) then
sound\_ext = 'wav';
else
sound\_ext = 'mp3';
end;
dog1Snd = audio.loadSound("bark1."..sound\_ext);
dog2Snd = audio.loadSound("bark2."..sound\_ext);
dog3Snd = audio.loadSound("bark3."..sound\_ext);
dog4Snd = audio.loadSound("bark4."..sound\_ext);
breathSnd = audio.loadSound("breath."..sound\_ext);
I get the following error from the terminal -
[text]
ERROR: The resource file (bark1.mp3) could not be found at case-sensitive path (/Users/manjero/Desktop/Magicdogs/bark1?.?mp3).
WARNING: Cannot create path for resource file ‘bark1.mp3’. File does not exist.
WARNING: Failed to create audio sound (bark1.mp3)
ERROR: The resource file (bark2.mp3) could not be found at case-sensitive path (/Users/manjero/Desktop/Magicdogs/bark2?.?mp3).
WARNING: Cannot create path for resource file ‘bark2.mp3’. File does not exist.
WARNING: Failed to create audio sound (bark2.mp3)
ERROR: The resource file (bark3.mp3) could not be found at case-sensitive path (/Users/manjero/Desktop/Magicdogs/bark3?.?mp3).
WARNING: Cannot create path for resource file ‘bark3.mp3’. File does not exist.
WARNING: Failed to create audio sound (bark3.mp3)
ERROR: The resource file (bark4.mp3) could not be found at case-sensitive path (/Users/manjero/Desktop/Magicdogs/bark4?.?mp3).
WARNING: Cannot create path for resource file ‘bark4.mp3’. File does not exist.
WARNING: Failed to create audio sound (bark4.mp3)
[/text]
The program plays “breath.wav” but not the others. same for mp3.
I’ve uploaded the problematic files to here in case someone wants to test them on his machine - http://www.ishahar.co.il/corona.zip
Thanks in advance,
Shahar Zrihen [import]uid: 13553 topic_id: 6981 reply_id: 306981[/import]