/third_party/libsnd/src/ |
D | au.c | 81 { int dataoffset ; member 211 psf->datalength = psf->filelength - psf->dataoffset ; in au_write_header() 258 psf->dataoffset = psf->header.indx ; in au_write_header() 302 psf_binheader_readf (psf, "E44444", &(au_fmt.dataoffset), &(au_fmt.datasize), in au_read_header() 307 psf_binheader_readf (psf, "e44444", &(au_fmt.dataoffset), &(au_fmt.datasize), in au_read_header() 313 psf_log_printf (psf, " Data Offset : %d\n", au_fmt.dataoffset) ; in au_read_header() 321 { psf->filelength = au_fmt.dataoffset + au_fmt.datasize ; in au_read_header() 324 else if (au_fmt.datasize == -1 || au_fmt.dataoffset + au_fmt.datasize == psf->filelength) in au_read_header() 326 else if (au_fmt.dataoffset + au_fmt.datasize < psf->filelength) in au_read_header() 327 { psf->filelength = au_fmt.dataoffset + au_fmt.datasize ; in au_read_header() [all …]
|
D | rf64.c | 319 psf->dataoffset = psf_ftell (psf) ; in rf64_read_header() 321 if (psf->dataoffset > 0) in rf64_read_header() 324 psf->datalength = psf->filelength - psf->dataoffset ; in rf64_read_header() 328 if (psf->datalength + psf->dataoffset < psf->filelength) in rf64_read_header() 329 psf->dataend = psf->datalength + psf->dataoffset ; in rf64_read_header() 331 if (!psf->sf.seekable || psf->dataoffset < 0) in rf64_read_header() 337 if (psf_ftell (psf) != psf->datalength + psf->dataoffset) in rf64_read_header() 385 if (psf->dataoffset <= 0) in rf64_read_header() 397 psf_fseek (psf, psf->dataoffset, SEEK_SET) ; in rf64_read_header() 410 psf_fseek (psf, psf->dataoffset, SEEK_SET) ; in rf64_read_header() [all …]
|
D | mpc2k.c | 115 psf->dataoffset = HEADER_LENGTH ; in mpc2k_write_header() 116 psf->datalength = psf->filelength - psf->dataoffset ; in mpc2k_write_header() 148 psf->dataoffset = psf->header.indx ; in mpc2k_write_header() 188 psf->dataoffset = psf_ftell (psf) ; in mpc2k_read_header() 194 psf->datalength = psf->filelength - psf->dataoffset ; in mpc2k_read_header() 198 psf->sf.frames = (psf->filelength - psf->dataoffset) / psf->blockwidth ; in mpc2k_read_header()
|
D | svx.c | 95 psf_fseek (psf, psf->dataoffset, SEEK_SET) ; in svx_open() 218 psf->dataoffset = psf_ftell (psf) ; in svx_read_header() 219 if (psf->dataoffset < 0) in svx_read_header() 222 if (psf->datalength > psf->filelength - psf->dataoffset) in svx_read_header() 223 …g_printf (psf, " BODY : %D (should be %D)\n", psf->datalength, psf->filelength - psf->dataoffset) ; in svx_read_header() 224 psf->datalength = psf->filelength - psf->dataoffset ; in svx_read_header() 328 if (psf->dataoffset <= 0) in svx_read_header() 353 psf->datalength = psf->filelength - psf->dataoffset ; in svx_write_header() 395 psf->dataoffset = psf->header.indx ; in svx_write_header()
|
D | mat4.c | 155 psf->datalength = psf->filelength - psf->dataoffset ; in mat4_write_header() 196 psf->dataoffset = psf->header.indx ; in mat4_write_header() 273 psf->dataoffset = psf_ftell (psf) ; in mat4_read_header() 318 if ((psf->filelength - psf->dataoffset) < psf->sf.channels * psf->sf.frames * psf->bytewidth) in mat4_read_header() 320 psf->filelength - psf->dataoffset, psf->sf.channels * psf->sf.frames * psf->bytewidth) ; in mat4_read_header() 322 else if ((psf->filelength - psf->dataoffset) > psf->sf.channels * psf->sf.frames * psf->bytewidth) in mat4_read_header() 323 psf->dataend = psf->dataoffset + rows * cols * psf->bytewidth ; in mat4_read_header() 325 psf->datalength = psf->filelength - psf->dataoffset - psf->dataend ; in mat4_read_header()
|
D | pvf.c | 126 psf->dataoffset = psf->header.indx ; in pvf_write_header() 176 psf->dataoffset = psf_ftell (psf) ; in pvf_read_header() 177 psf_log_printf (psf, " Data Offset : %D\n", psf->dataoffset) ; in pvf_read_header() 181 psf->datalength = psf->filelength - psf->dataoffset ; in pvf_read_header() 185 psf->sf.frames = (psf->filelength - psf->dataoffset) / psf->blockwidth ; in pvf_read_header()
|
D | avr.c | 164 psf->dataoffset = AVR_HDR_SIZE ; in avr_read_header() 170 if (psf_ftell (psf) != psf->dataoffset) in avr_read_header() 171 psf_binheader_readf (psf, "j", psf->dataoffset - psf_ftell (psf)) ; in avr_read_header() 176 psf->sf.frames = (psf->filelength - psf->dataoffset) / psf->blockwidth ; in avr_read_header() 194 psf->datalength = psf->filelength - psf->dataoffset ; in avr_write_header() 228 psf->dataoffset = psf->header.indx ; in avr_write_header()
|
D | wve.c | 132 psf->dataoffset = PSION_DATAOFFSET ; in wve_read_header() 133 if (datalength != psf->filelength - psf->dataoffset) in wve_read_header() 134 { psf->datalength = psf->filelength - psf->dataoffset ; in wve_read_header() 163 psf->datalength = psf->filelength - psf->dataoffset ; in wve_write_header() 187 psf->dataoffset = psf->header.indx ; in wve_write_header()
|
D | voc.c | 161 short version, checksum, encoding, dataoffset ; in voc_read_header() local 178 offset += psf_binheader_readf (psf, "e222", &dataoffset, &version, &checksum) ; in voc_read_header() 180 psf->dataoffset = dataoffset ; in voc_read_header() 184 "checksum : 0x%X\n", psf->dataoffset, version, checksum) ; in voc_read_header() 263 psf->dataoffset = offset ; in voc_read_header() 326 psf->dataoffset = offset ; in voc_read_header() 368 psf->dataoffset = offset ; in voc_read_header() 430 psf->datalength = psf->filelength - psf->dataoffset ; in voc_write_header() 521 psf->dataoffset = psf->header.indx ; in voc_write_header()
|
D | htk.c | 134 psf->dataoffset = psf->header.indx ; in htk_write_header() 214 psf->dataoffset = 12 ; in htk_read_header() 217 psf->datalength = psf->filelength - psf->dataoffset ; in htk_read_header() 222 psf->sf.frames = (psf->filelength - psf->dataoffset) / psf->blockwidth ; in htk_read_header()
|
D | wav.c | 206 psf->dataoffset = 0 ; in wav_open() 415 psf->dataoffset = psf_ftell (psf) ; in wav_read_header() 417 if (psf->dataoffset > 0) in wav_read_header() 420 psf->datalength = psf->filelength - psf->dataoffset ; in wav_read_header() 423 if (psf->datalength > psf->filelength - psf->dataoffset) in wav_read_header() 424 …og_printf (psf, "data : %D (should be %D)\n", psf->datalength, psf->filelength - psf->dataoffset) ; in wav_read_header() 425 psf->datalength = psf->filelength - psf->dataoffset ; in wav_read_header() 431 if (psf->datalength + psf->dataoffset < psf->filelength) in wav_read_header() 432 psf->dataend = psf->datalength + psf->dataoffset ; in wav_read_header() 438 if (! psf->sf.seekable || psf->dataoffset < 0) in wav_read_header() [all …]
|
D | nist.c | 149 psf->dataoffset = count ; in nist_read_header() 152 psf->dataoffset = NIST_HEADER_LENGTH ; in nist_read_header() 228 psf->datalength = psf->filelength - psf->dataoffset ; in nist_read_header() 230 psf_fseek (psf, psf->dataoffset, SEEK_SET) ; in nist_read_header() 297 psf->datalength = psf->filelength - psf->dataoffset ; in nist_write_header() 352 psf->dataoffset = NIST_HEADER_LENGTH ; in nist_write_header()
|
D | rx2.c | 236 psf->dataoffset = psf_binheader_readf (psf, NULL) ; in rx2_open() 238 if (psf->dataoffset + length != psf->filelength) in rx2_open() 239 …psf_log_printf (psf, " %M : %d (should be %d)\n", marker, length, psf->dataoffset + psf->filelengt… in rx2_open() 278 psf->datalength = psf->filelength - psf->dataoffset ; in rx2_open() 280 if (psf_fseek (psf, psf->dataoffset, SEEK_SET)) in rx2_open()
|
D | xi.c | 207 psf->datalength = (psf->dataend) ? psf->dataend - psf->dataoffset : in dpcm_init() 208 psf->filelength - psf->dataoffset ; in dpcm_init() 226 if (psf->datalength < 0 || psf->dataoffset < 0) in dpcm_seek() 232 { psf_fseek (psf, psf->dataoffset, SEEK_SET) ; in dpcm_seek() 248 psf_fseek (psf, psf->dataoffset, SEEK_SET) ; in dpcm_seek() 321 psf->dataoffset = psf->header.indx ; in xi_write_header() 459 psf->dataoffset = psf_ftell (psf) ; in xi_read_header() 460 if (psf->dataoffset < 0) in xi_read_header() 461 { psf_log_printf (psf, "*** Bad Data Offset : %D\n", psf->dataoffset) ; in xi_read_header() 464 psf_log_printf (psf, "Data Offset : %D\n", psf->dataoffset) ; in xi_read_header() [all …]
|
D | w64.c | 311 psf->dataoffset = psf_ftell (psf) ; in w64_read_header() 312 psf->datalength = SF_MIN (chunk_size - 24, psf->filelength - psf->dataoffset) ; in w64_read_header() 375 if (psf->dataoffset <= 0) in w64_read_header() 386 if (psf_ftell (psf) != psf->dataoffset) in w64_read_header() 387 psf_fseek (psf, psf->dataoffset, SEEK_SET) ; in w64_read_header() 390 { if (psf->filelength - psf->dataoffset < psf->datalength) in w64_read_header() 391 psf->sf.frames = (psf->filelength - psf->dataoffset) / psf->blockwidth ; in w64_read_header() 449 psf->datalength = psf->filelength - psf->dataoffset ; in w64_write_header() 624 psf->dataoffset = psf->header.indx ; in w64_write_header()
|
D | aiff.c | 256 psf_fseek (psf, psf->dataoffset, SEEK_SET) ; in aiff_open() 275 psf->dataoffset = 0 ; in aiff_open() 548 psf->dataoffset = psf_ftell (psf) ; in aiff_read_header() 550 if (psf->datalength > psf->filelength - psf->dataoffset || psf->datalength < 0) in aiff_read_header() 551 … (psf, " SSND : %u (should be %D)\n", SSNDsize, psf->filelength - psf->dataoffset + sizeof (SSND_C… in aiff_read_header() 552 psf->datalength = psf->filelength - psf->dataoffset ; in aiff_read_header() 557 if (ssnd_fmt.offset == 0 || psf->dataoffset + ssnd_fmt.offset == ssnd_fmt.blocksize) in aiff_read_header() 561 psf->dataoffset += ssnd_fmt.offset ; in aiff_read_header() 567 psf->dataoffset += ssnd_fmt.offset ; in aiff_read_header() 572 if (psf->datalength + psf->dataoffset < psf->filelength) in aiff_read_header() [all …]
|
D | new.c | 102 psf->dataoffset = 0x20 ; in new_read_header() 103 psf->datalength = psf->filelength - psf->dataoffset ; in new_read_header()
|
D | interleave.c | 109 offset = psf->dataoffset + chan * psf->bytewidth * psf->read_current ; in interleave_read_short() 156 offset = psf->dataoffset + chan * psf->bytewidth * psf->read_current ; in interleave_read_int() 203 offset = psf->dataoffset + pdata->channel_len * chan + psf->read_current * psf->bytewidth ; in interleave_read_float() 254 offset = psf->dataoffset + chan * psf->bytewidth * psf->read_current ; in interleave_read_double()
|
D | paf.c | 105 psf->dataoffset = PAF_HEADER_LENGTH ; in paf_open() 204 psf->datalength = psf->filelength - psf->dataoffset ; in paf_read_header() 206 psf_binheader_readf (psf, "p", (int) psf->dataoffset) ; in paf_read_header() 282 psf->dataoffset = PAF_HEADER_LENGTH ; in paf_write_header() 318 psf_binheader_writef (psf, "z", BHWz ((size_t) (psf->dataoffset - psf->header.indx))) ; in paf_write_header() 389 psf->datalength = psf->filelength - psf->dataoffset ; in paf24_init() 434 psf_fseek (psf, psf->dataoffset + newblock * ppaf24->blocksize, SEEK_SET) ; in paf24_seek() 449 psf_fseek (psf, psf->dataoffset + newblock * ppaf24->blocksize, SEEK_SET) ; in paf24_seek()
|
D | caf.c | 146 psf->dataoffset = 0 ; in caf_open() 479 psf->dataoffset = psf->header.indx ; in caf_read_header() 480 if (psf->datalength + psf->dataoffset < psf->filelength) in caf_read_header() 481 psf->dataend = psf->datalength + psf->dataoffset ; in caf_read_header() 564 psf_fseek (psf, psf->dataoffset, SEEK_SET) ; in caf_read_header() 597 psf->datalength = psf->filelength - psf->dataoffset ; in caf_write_header() 757 psf->dataoffset = psf->header.indx ; in caf_write_header() 758 if (current < psf->dataoffset) in caf_write_header() 759 psf_fseek (psf, psf->dataoffset, SEEK_SET) ; in caf_write_header() 775 psf->dataend = psf->dataoffset + psf->datalength ; in caf_write_tailer()
|
D | mpeg.c | 137 psf->dataoffset = 0 ; in mpeg_open() 141 psf->datalength = psf->filelength - psf->dataoffset ; in mpeg_open()
|
D | ircam.c | 98 psf->dataoffset = IRCAM_DATA_OFFSET ; in ircam_open() 220 psf->dataoffset = IRCAM_DATA_OFFSET ; in ircam_read_header() 221 psf->datalength = psf->filelength - psf->dataoffset ; in ircam_read_header()
|
D | ima_adpcm.c | 205 psf->datalength = (psf->dataend) ? psf->dataend - psf->dataoffset : in ima_reader_init() 206 psf->filelength - psf->dataoffset ; in ima_reader_init() 718 if (psf->datalength < 0 || psf->dataoffset < 0) in aiff_ima_seek() 724 { psf_fseek (psf, psf->dataoffset, SEEK_SET) ; in aiff_ima_seek() 741 { psf_fseek (psf, psf->dataoffset + newblockaiff * pima->blocksize, SEEK_SET) ; in aiff_ima_seek() 764 if (psf->datalength < 0 || psf->dataoffset < 0) in wavlike_ima_seek() 770 { psf_fseek (psf, psf->dataoffset, SEEK_SET) ; in wavlike_ima_seek() 789 { psf_fseek (psf, psf->dataoffset + newblock * pima->blocksize, SEEK_SET) ; in wavlike_ima_seek()
|
D | gsm610.c | 155 psf_fseek (psf, psf->dataoffset, SEEK_SET) ; in gsm610_init() 180 psf->datalength = psf->filelength - psf->dataoffset ; in gsm610_init() 383 if (psf->dataoffset < 0) in gsm610_seek() 391 psf_fseek (psf, psf->dataoffset, SEEK_SET) ; in gsm610_seek() 414 { psf_fseek (psf, psf->dataoffset + newblock * pgsm610->samplesperblock, SEEK_SET) ; in gsm610_seek()
|
D | mat5.c | 171 psf->datalength = psf->filelength - psf->dataoffset ; in mat5_write_header() 251 psf->dataoffset = psf->header.indx ; in mat5_write_header() 504 psf->dataoffset = psf_ftell (psf) ; in mat5_read_header() 505 psf->datalength = psf->filelength - psf->dataoffset ; in mat5_read_header()
|