Displaying 1 result from an estimated 1 matches for "sf_endian_big".
2013 Dec 04
1
endian problems with AIFF and WAV
...[1]);
exit(2);
}
sf_info.format = 0;
sndfile = sf_open_fd(fileno(fp), SFM_READ, &sf_info, 1);
memset(&format, 0, sizeof(format));
if ((sf_info.format & SF_ENDIAN_LITTLE) == SF_ENDIAN_LITTLE) format.byte_format = AO_FMT_LITTLE;
if ((sf_info.format & SF_ENDIAN_BIG) == SF_ENDIAN_BIG) format.byte_format = AO_FMT_BIG;
if ((sf_info.format & SF_FORMAT_PCM_S8) == SF_FORMAT_PCM_S8) format.bits = 8;
if ((sf_info.format & SF_FORMAT_PCM_16) == SF_FORMAT_PCM_16) format.bits = 16;
if ((sf_info.format & SF_FORMAT_PCM_24) == SF_FORMAT_PCM_24) fo...