Hey guys, I just did a test with my new toy : HTC Desire HD.
The device is blazing fast. Runs great. However, I am having trouble getting the sound to play on the device.
I am not sure if it is a device thing since this is the only android phone that I have.
Anyways, I tried to export my Siren Ying Yang game to android but there seem to be a bit of issue with the sound not playing. The sound work on the simulator for both the iPhone and iPad and Android Sim. Sound also works on the real iPhone, iPad device except for my android.
Some possibilities:
I have my sounds in a \sounds\ folder
My sounds are now converted to Mp3
I get some weird script warning when building (will share next time, not with me atm)
my sounds are in lower case.
my sounds are all preloaded in main
my sounds relies on a timer.performWithDelay, so that sounds do not clash
I am using the latest Game Edition to compile.
If I am doing anything wrong, please please let me know. [import]uid: 6066 topic_id: 3580 reply_id: 303580[/import]
WAV support for Android is being added in the next drop.
You need to make sure that no sound files with the same base name but different extensions are in the directory. For example, “foo.ogg” and “foo.mp3” will cause a problem in the Android build.
Sounds in a subdirectory might not work right. And the names must all be unique anyway. [import]uid: 54 topic_id: 3580 reply_id: 10969[/import]
However, about the build script, the following debug text appears now and then.
[code]
The ’ characters around the executable and arguments are
not part of the command.
[signjar] ???
[exec] Current OS is Mac OS X
[exec] Executing ‘/Applications/Corona Game Edition 2010.109/Corona Simulator.app/Contents/Resources/zipalign’ with arguments:
[exec] ‘-f’
[exec] ‘4’
[exec] ‘/var/folders/ql/qlEHx-1EGQyvnZOY94PZSE+++TI/-Tmp-//1289744397/MyCoronaActivity-signed.apk’
[exec] ‘/var/folders/ql/qlEHx-1EGQyvnZOY94PZSE+++TI/-Tmp-//1289744397/MyCoronaActivity-signed-aligned.apk’
[exec]
[exec] The ’ characters around the executable and arguments are
[exec] not part of the command.
Execute:Java13CommandLauncher: Executing ‘/Applications/Corona Game Edition 2010.109/Corona Simulator.app/Contents/Resources/zipalign’ with arguments:
‘-f’
‘4’
‘/var/folders/ql/qlEHx-1EGQyvnZOY94PZSE+++TI/-Tmp-//1289744397/MyCoronaActivity-signed.apk’
‘/var/folders/ql/qlEHx-1EGQyvnZOY94PZSE+++TI/-Tmp-//1289744397/MyCoronaActivity-signed-aligned.apk’
The ’ characters around the executable and arguments are
not part of the command.
Build sequence for target(s) `copy-to’ is [copy-to]
Complete build sequence is [copy-to, zip, sign, unzip, insert-assets-one-icon, insert-assets, pre-upload, none, insert-assets-multi-icon,]
I am also having an issue on an Android. It’s the HTC Desire (non HD). All works fine except sounds wont play.
I have 1 sound file with unique name “horn.mp3”. Plays fine on Simulator but nothing on actual phone.
Do the MP3’s have to be a certain spec?
Help please! [import]uid: 40581 topic_id: 3580 reply_id: 26232[/import]