I am developing a cross-platform business app which needs to be able to play an audio sample, provided by an API call to the clients server, which is an 8-bit WAV file at 11,025Hz sample rate. The plays OK on iOS but not an Android device (specifically a Nexus 7 so far).
The Corona documentation says:
- Cross-platform .wav files must be 16-bit uncompressed
So I assumed this was an Android limitation, however my client says that their tests show that the audio works on an Android device. Google’s documentation states:
http://developer.android.com/guide/appendix/media-formats.html
- PCM/WAVE
(Android 4.1+) - 8- and 16-bit linear PCM (rates up to limit of hardware). Sampling rates for raw PCM recordings at 8000, 16000 and 44100 Hz.
- WAVE (.wav)
… which doesn’t explicitly say that 11,025Hz is supported or not (as I’m not sure we’re dealing with linear or raw PCM data).
Can anyone shed any light on this? If it is a Corona limitation, rather than Android, then I’ve got real problems as the existing audio format is specified elsewhere in the clients systems.
Stefan