android audio - normal output not working

Hey folks,
Trying to release an app to the android market tonight to catch the holiday…

Using the ComicsSDK - and audio works great on the iOS devices.
When I build for android, there is no output on the speakers.

  1. Yes other apps audio output works.
  2. Tried several builds including the latest 714 (and 703).
  3. Tried several different android devices including a color nook (who the author says the comicssdk works with), and a plain jane moto triumph.
  4. nothing in logcat beyond the normal corona chatter
  5. sample app - Eventsound doesnt work on either device either.

After rooting throught the threads - dont seem to see anyone else with the problem…

Any ideas?

Thanks! [import]uid: 9070 topic_id: 19563 reply_id: 319563[/import]

I’ll answer my own post - with the following…

I solved it by doing a bunch of things.

  1. converting all the sounds to 96kpbs
  2. used loadStream
  3. moved the mp3s to the base dir
  4. added file name _mp3 to each file ie 1_mp3.mp3 (saw that in some corona threads)
  5. hardwired the code to use only mp3s (no if android then code)
  6. removed all the iOs assets. (with them my app was 25mb in size - without it went to 15mb)

Dont know which one solved it - as I was on a deadline for submission… so I sledgehammered it.

Thanks to David Fox@ electriceggplant for the great comics sdk and the ideas on how to fix it… [import]uid: 9070 topic_id: 19563 reply_id: 76034[/import]

As of the current release version of Corona (build #704), you no longer have to do item #3 and #4. Corona for Android now supports audio files in subdirectories and they can now differ by extension. I’m guessing that the real issue here was that the audio files were encoded in a format that the Android OS did not support. Usually we recommend MP3 and WAV files for best portability. [import]uid: 32256 topic_id: 19563 reply_id: 77155[/import]

All audio files that worked were encoded to 96kbps/stereo mp3 using audacity for the pc.

If there is an upper limit to the kbps is should be documented.
128k didnt work… 96k did, so I stopped there with the exploration.

Thanks! [import]uid: 9070 topic_id: 19563 reply_id: 77587[/import]

I’ve talked to our audio expert here and he said that Corona’s audio decoder definitely does support 128kbps audio files. He suspects that your 128k audio file is using a different MP3 encoding than your 96k version. There are many, many kinds of MP3 encodings, too many to really document, so he recommends that you try different ones until you find one that works best for you. He also told me that the Corona Simulator for “Windows” (not Mac/OSX) uses the same audio decoder as the one used for Android. This makes it easier/faster to test your MP3 files for compatibility with Corona before building for Android.

I personally don’t like this answer, but I’m not an audio expert either and don’t know what else to recommend.

Here is a link to our audio documentation. Hopefully this will help too.
http://developer.anscamobile.com/partner/audionotes
[import]uid: 32256 topic_id: 19563 reply_id: 77628[/import]

Hey guys,

I do not know if I`ll be helping btw I do use the major part of my sounds as enconded .mp3 format at 128k. I know it gets a great part of physical space but the quality is perfect.

So as Joshua said above (about the Coronas sound expert) I can agree, not because am sound expert also but because I am using this setup actually. My tip is: Get the opensource soft called AUDACITY (Win & Mac) and enconde your .mp3 sound files using that tool as it has been for me the best sound software "free" Ive got by far until now. There you should be able to encode it at 128K, 96K, 44K…and so on.
Good Luck,
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 19563 reply_id: 77649[/import]

@Joshua,

Thanks for the info, but this didnt really tell me anything new from my previous scanns of the forums and doc pages.

I guess in the coming week (as I am working a new kids ebook project) I will dig in and get specifics.

As mentioned - I am using audacity for the mp3 generation - and it has many switches/options. I didnt change anything between my 128k and 96k tests…

I check again - and report back - stay tuned. [import]uid: 9070 topic_id: 19563 reply_id: 78318[/import]

You can find a table of media formats supported by Android on Google’s website below. Hopefully this will help some.

http://developer.android.com/guide/appendix/media-formats.html
[import]uid: 32256 topic_id: 19563 reply_id: 78362[/import]