Android Build Sound Issue on HTC Desire HD

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:

  1. I have my sounds in a \sounds\ folder
  2. My sounds are now converted to Mp3
  3. I get some weird script warning when building (will share next time, not with me atm)
  4. my sounds are in lower case.
  5. my sounds are all preloaded in main
  6. 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]

I have a project working on the iOS, but the sounds do not work on the Android for some reason.

*EDIT* Some sounds work, need to check what’s the issue…

*EDIT* It seems that on the Android, MP#'s are played, where as there is an issue with WAV files.

cheers,

Jayant C Varma [import]uid: 3826 topic_id: 3580 reply_id: 10823[/import]

haha please let me know what the issue is if you have figured it out. [import]uid: 6066 topic_id: 3580 reply_id: 10834[/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]

Sub Directory is the culprit.

After placing images in root, the sound plays.

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,]

[/code] [import]uid: 6066 topic_id: 3580 reply_id: 11030[/import]

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]

Just put all sound files to main folder :slight_smile: [import]uid: 12704 topic_id: 3580 reply_id: 26724[/import]