search for: sf_endian_littl

Displaying 1 result from an estimated 1 matches for "sf_endian_littl".

Did you mean: sf_endian_little
2013 Dec 04
1
endian problems with AIFF and WAV
...fp = fopen(argv[1], "rb"); if (fp == NULL) { printf("Cannot open %s.\n", argv[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_F...