Skip to content

Supported audio formats and codecs

Hangman edited this page May 5, 2024 · 17 revisions

A full list of supported audio formats:

Format Codec Decoder Bits Per Sample Bit Format Channels Since Comment
wav PCM TuningFork 8 ubyte 1 - 8 2.0.0
wav PCM TuningFork 16 short 1 - 8 1.0.0
wav PCM TuningFork 24 int 1 - 8 3.0.0 Converted to 16 bits per sample
wav PCM TuningFork 32 int 1 - 8 3.0.0 Converted to 16 bits per sample
wav PCM TuningFork 32 float 1 - 2 3.0.0
wav PCM TuningFork 64 float 1 - 2 3.0.0
wav IMA ADPCM TuningFork 4 nibble 1 - 2 3.0.0
wav MS ADPCM OpenAL Soft 4 nibble 1 - 2 4.0.0
wav a-law javax.sound 8 byte 1 - 8 4.0.0 Converted to 16 bits per sample
wav u-law javax.sound 8 byte 1 - 8 4.0.0 Converted to 16 bits per sample
aiff PCM TuningFork 8 - 16 int 1 - 8 4.0.0
aiff PCM TuningFork 17 - 32 int 1 - 8 4.0.0 Converted to 16 bits per sample
aiff/aifc PCM TuningFork 32 float 1 - 8 4.0.0
aiff/aifc PCM TuningFork 64 float 1 - 8 4.0.0
aiff/aifc a-law javax.sound 8 byte 1 - 8 4.0.0 Converted to 16 bits per sample
aiff/aifc u-law javax.sound 8 byte 1 - 8 4.0.0 Converted to 16 bits per sample
qoa QOA TuningFork 3.2 short 1 - 8 4.3.0 https://qoaformat.org/ Recommended encoder: goqoa
ogg Vorbis jorbis/stb_vorbis - int 1 - 8 1.0.0
mp3 MPEG-Layer-3 javazoom.jlayer - int 1 - 2 3.1.0 Full support since 3.3.0
flac FLAC FLAC-library-Java 8 int 1 - 8 2.0.1
flac FLAC FLAC-library-Java 16 int 1 - 8 2.0.0