0
0

Hello,

I’ve got fmod working on an Android device, but the getting started doc doesn’t list the available file formats. I tried playing a .m4a file (works on iPhone) but on Android the debug log says it’s not supported. Also, is there a "best" format we should be using for Android for streaming audio?

Best,

It3ration

  • EDIT: I’ve tried .ogg vorbis as well with no luck, but .mp3 works.
  • You must to post comments
0
0

Ogg Vorbis should work, but it would be expensive.
MP2 and MP3 are available (good choices for a limited number of music streams).
ADPCM should give good results for SFX.

AAC isn’t supported (only available on iPhone through the iOS SDK).

  • You must to post comments
0
0

Hey Matthew,

Thanks for the reply. The ogg vorbis encoded track I tried didn’t work – I created it reencoding a m4a via ffmpeg – mp3 works just fine though.

Also, is ADPCM quite different than .wav?

Best,

It3ration

  • You must to post comments
0
0

Could you check the TTY (using the logging version of FMOD), perhaps it explains why the Ogg Vorbis file fails to load.

ADPCM is a simple codec, it achieves a fixed 3.5:1 compression ratio over standard .wav.

  • You must to post comments
0
0

Are any codecs backed by hardware decoding, or are all codecs decoded by FMOD via software?

  • You must to post comments
0
0

All codecs decode in software on Android, that platform doesn’t provide hardware accelerated decoding at this stage.
If they introduce them in the future we will look into supporting them much like we have on iOS.

  • You must to post comments
0
0

@mathew:

  1. Why is .mp3 better than .ogg on Android if there is no hardware decoding at all?

  2. I have another question: With ADPCM do you mean the IM-ADPCM format.

Best,
Tom

  • You must to post comments
0
0

Our MP3 decoder is more optimizer than our current Ogg Vorbis decoder, plus the Ogg Vorbis decoder uses a lot more memory.
That being said, we are working on an optimized version of Vorbis that will be support in FSB that (when available) will probably be a better choice than MP2 or MP3.

Yes, by ADPCM I mean IMAADPCM.

  • You must to post comments
Showing 7 results
Your Answer

Please first to submit.