aiff.c : Add support for 'in24' files.

This commit is contained in:
Erik de Castro Lopo 2007-02-22 10:28:57 +11:00
parent f57ba1a99c
commit 94fee4ea48
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-02-22 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/aiff.c
Add support for 'in24' files.
2007-02-13 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/wav.c src/wav_w64.c src/wav_w64.h

View File

@ -58,6 +58,8 @@
#define sowt_MARKER (MAKE_MARKER ('s', 'o', 'w', 't'))
#define twos_MARKER (MAKE_MARKER ('t', 'w', 'o', 's'))
#define raw_MARKER (MAKE_MARKER ('r', 'a', 'w', ' '))
#define in24_MARKER (MAKE_MARKER ('i', 'n', '2', '4'))
#define ni24_MARKER (MAKE_MARKER ('4', '2', 'n', '1'))
#define in32_MARKER (MAKE_MARKER ('i', 'n', '3', '2'))
#define ni32_MARKER (MAKE_MARKER ('2', '3', 'n', 'i'))
@ -890,11 +892,13 @@ aiff_read_comm_chunk (SF_PRIVATE *psf, COMM_CHUNK *comm_fmt)
break ;
case twos_MARKER :
case in24_MARKER :
case in32_MARKER :
psf->sf.format = (SF_ENDIAN_BIG | SF_FORMAT_AIFF | subformat) ;
break ;
case sowt_MARKER :
case ni24_MARKER :
case ni32_MARKER :
psf->endian = SF_ENDIAN_LITTLE ;
psf->sf.format = (SF_ENDIAN_LITTLE | SF_FORMAT_AIFF | subformat) ;