mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 09:59:54 +00:00
Fix writing of IRCAM files.
This commit is contained in:
parent
70d55c6028
commit
cf43fb1528
@ -1,3 +1,8 @@
|
||||
2005-05-10 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
||||
|
||||
* src/ircam.c
|
||||
Fix writing of IRCAM files (thanks to Axel Röbel).
|
||||
|
||||
2005-04-30 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
||||
|
||||
* src/aiff.c
|
||||
|
@ -40,7 +40,7 @@
|
||||
#define IRCAM_LE_MASK (MAKE_MARKER (0xFF, 0x00, 0xFF, 0xFF))
|
||||
#define IRCAM_LE_MARKER (MAKE_MARKER (0x00, 0x00, 0xA3, 0x64))
|
||||
|
||||
#define IRCAM_02B_MARKER (MAKE_MARKER (0x00, 0x02, 0xA3, 0x64))
|
||||
#define IRCAM_02B_MARKER (MAKE_MARKER (0x64, 0xA3, 0x02, 0x00))
|
||||
#define IRCAM_03L_MARKER (MAKE_MARKER (0x64, 0xA3, 0x03, 0x00))
|
||||
|
||||
#define IRCAM_DATA_OFFSET (1024)
|
||||
@ -139,8 +139,7 @@ ircam_read_header (SF_PRIVATE *psf)
|
||||
|
||||
psf_binheader_readf (psf, "epmf44", 0, &marker, &samplerate, &(psf->sf.channels), &encoding) ;
|
||||
|
||||
if (((marker & IRCAM_LE_MASK) != IRCAM_LE_MARKER) &&
|
||||
((marker & IRCAM_BE_MASK) != IRCAM_BE_MARKER))
|
||||
if (((marker & IRCAM_BE_MASK) != IRCAM_BE_MARKER) && ((marker & IRCAM_LE_MASK) != IRCAM_LE_MARKER))
|
||||
{ psf_log_printf (psf, "marker: 0x%X\n", marker) ;
|
||||
return SFE_IRCAM_NO_MARKER ;
|
||||
} ;
|
||||
|
Loading…
Reference in New Issue
Block a user