• Home
  • Raw
  • Download

Lines Matching refs:filelength

170 	if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && psf->filelength > 0))  in wav_open()
200 if (psf->file.mode != SFM_RDWR || psf->filelength < 44) in wav_open()
201 { psf->filelength = 0 ; in wav_open()
280 if (psf->file.mode == SFM_WRITE || (psf->file.mode == SFM_RDWR && psf->filelength == 0)) in wav_open()
298 if (psf->is_pipe == 0 && psf->filelength > SF_PLATFORM_S64 (0xffffffff)) in wav_read_header()
338 if (psf->fileoffset > 0 && psf->filelength > RIFFsize + 8) in wav_read_header()
340 psf->filelength = RIFFsize + 8 ; in wav_read_header()
346 else if (psf->filelength < RIFFsize + 2 * SIGNED_SIZEOF (marker)) in wav_read_header()
348 …psf_log_printf (psf, "RIFF : %u (should be %D)\n", RIFFsize, psf->filelength - 2 * SIGNED_SIZEOF (… in wav_read_header()
350 …psf_log_printf (psf, "RIFX : %u (should be %D)\n", RIFFsize, psf->filelength - 2 * SIGNED_SIZEOF (… in wav_read_header()
352 RIFFsize = psf->filelength - 2 * SIGNED_SIZEOF (RIFFsize) ; in wav_read_header()
403 { if (chunk_size == 0 && RIFFsize == 8 && psf->filelength > 44) in wav_read_header()
405 psf->datalength = psf->filelength - psf->dataoffset ; in wav_read_header()
408 if (psf->datalength > psf->filelength - psf->dataoffset) in wav_read_header()
409 …{ psf_log_printf (psf, "data : %D (should be %D)\n", psf->datalength, psf->filelength - psf->datao… in wav_read_header()
410 psf->datalength = psf->filelength - psf->dataoffset ; in wav_read_header()
416 if (psf->datalength + psf->dataoffset < psf->filelength) in wav_read_header()
626 if (chunk_size >= psf->filelength) in wav_read_header()
627 …rintf (psf, "*** Chunk size %u > file length %D. Exiting parser.\n", chunk_size, psf->filelength) ; in wav_read_header()
634 if (psf_ftell (psf) >= psf->filelength - SIGNED_SIZEOF (chunk_size)) in wav_read_header()
671 { if (psf->filelength - psf->dataoffset < psf->datalength) in wav_read_header()
672 psf->sf.frames = (psf->filelength - psf->dataoffset) / psf->blockwidth ; in wav_read_header()
1070 { psf->filelength = psf_get_filelen (psf) ; in wav_write_header()
1072 psf->datalength = psf->filelength - psf->dataoffset ; in wav_write_header()
1075 psf->datalength -= psf->filelength - psf->dataend ; in wav_write_header()
1094 …ader_writef (psf, "etm8", BHWm (RIFF_MARKER), BHW8 ((psf->filelength < 8) ? 8 : psf->filelength - … in wav_write_header()
1096 …ader_writef (psf, "Etm8", BHWm (RIFX_MARKER), BHW8 ((psf->filelength < 8) ? 8 : psf->filelength - … in wav_write_header()
1249 if (current < psf->filelength) in wav_close()
1251 psf->filelength = current ; in wav_close()