]> git.tuebingen.mpg.de Git - paraslash.git/commit
New audio formats: 32 bit float (little and big endian).
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 8 Sep 2018 10:11:33 +0000 (12:11 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 17 Mar 2024 11:35:11 +0000 (12:35 +0100)
commit8d94b97b75f22826ac6c1c3c990a9adb15a5ca05
treecba2bfe7c1dc7e6fa617fb98dc06c9f989aaa99b
parent2934ee80367ee9d50b99ed8d7f672d1a397b4ce0
New audio formats: 32 bit float (little and big endian).

At least the little endian version seems to be popular these days. It
is only supported by ALSA, however. To check whether a given wave
file employs one of the two SF_FLOAT formats (aka IEEE float) we have
to consult the format code, a 16 bit integer stored at offset 20 of
the wave header which describes the waveform data according to the
table below.

0x0001 PCM
0x0003 IEEE float
0x0006 8-bit ITU-T G.711 A-law
0x0007 8-bit ITU-T G.711 MU-law
0xFFFE Determined by SubFormat

Additional checks are added to check_wav_post_select() which make
sure that the format code is either 1 or 3, and that the number is
compatible with the bits per sample value.
alsa_write.c
ao_write.c
check_wav.c
m4/lls/include/sample-format.m4
para.h