Implement audio file decoding support on Android using MediaCodec · Issue #86 · processing/processing-sound (original) (raw)

To improve audio file format support on most platforms, starting with 0d8287d the SoundFile class uses the JavaSound system to decode audio files, which however does not exist on Android. In order to achieve the same format coverage as on full JavaSE platforms, a decoding routine mimicking the JavaSound one but based on the Android MediaCodec class would have to be implemented.

The basic support for 16 bit wavs and aiffs on Android is not affected by this change, however there is the chance that the SoundFile class in its current state will not even be run because of imports that are missing on Android. I would be super grateful if @codeanticode, @Calsign, @daniel-tran or other users with a running Android setup could take the current development build for a test ride and report back any issues?

(Once some proper unit tests have been added, it would also make sense to add a android-based test target to the Github deploy workflow.)