mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-27 03:50:29 +00:00
aiff.c : Add support for 'in24' files.
This commit is contained in:
parent
f57ba1a99c
commit
94fee4ea48
@ -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
|
||||
|
@ -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) ;
|
||||
|
Loading…
Reference in New Issue
Block a user