• Home
  • Raw
  • Download

Lines Matching refs:filelength

173 	if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && psf->filelength > 0))  in wav_open()
203 if (psf->file.mode != SFM_RDWR || psf->filelength < 44) in wav_open()
204 { psf->filelength = 0 ; in wav_open()
295 if (psf->file.mode == SFM_WRITE || (psf->file.mode == SFM_RDWR && psf->filelength == 0)) in wav_open()
313 if (psf->is_pipe == 0 && psf->filelength > 0xFFFFFFFFLL) in wav_read_header()
353 if (psf->fileoffset > 0 && psf->filelength > RIFFsize + 8) in wav_read_header()
355 psf->filelength = RIFFsize + 8 ; in wav_read_header()
361 else if (psf->filelength < RIFFsize + 2 * SIGNED_SIZEOF (marker)) in wav_read_header()
363 …psf_log_printf (psf, "RIFF : %u (should be %D)\n", RIFFsize, psf->filelength - 2 * SIGNED_SIZEOF (… in wav_read_header()
365 …psf_log_printf (psf, "RIFX : %u (should be %D)\n", RIFFsize, psf->filelength - 2 * SIGNED_SIZEOF (… in wav_read_header()
367 RIFFsize = psf->filelength - 2 * SIGNED_SIZEOF (RIFFsize) ; in wav_read_header()
418 { if (chunk_size == 0 && RIFFsize == 8 && psf->filelength > 44) 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 …{ psf_log_printf (psf, "data : %D (should be %D)\n", psf->datalength, psf->filelength - psf->datao… 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()
624 psf_ftell (psf) - 8 + 128 == psf->filelength) in wav_read_header()
650 if (chunk_size >= psf->filelength) in wav_read_header()
651 …rintf (psf, "*** Chunk size %u > file length %D. Exiting parser.\n", chunk_size, psf->filelength) ; in wav_read_header()
658 if (psf_ftell (psf) >= psf->filelength - SIGNED_SIZEOF (chunk_size)) in wav_read_header()
695 { if (psf->filelength - psf->dataoffset < psf->datalength) in wav_read_header()
696 psf->sf.frames = (psf->filelength - psf->dataoffset) / psf->blockwidth ; in wav_read_header()
1151 { psf->filelength = psf_get_filelen (psf) ; in wav_write_header()
1153 psf->datalength = psf->filelength - psf->dataoffset ; in wav_write_header()
1156 psf->datalength -= psf->filelength - psf->dataend ; in wav_write_header()
1175 …ader_writef (psf, "etm8", BHWm (RIFF_MARKER), BHW8 ((psf->filelength < 8) ? 8 : psf->filelength - … in wav_write_header()
1177 …ader_writef (psf, "Etm8", BHWm (RIFX_MARKER), BHW8 ((psf->filelength < 8) ? 8 : psf->filelength - … in wav_write_header()
1330 if (current < psf->filelength) in wav_close()
1332 psf->filelength = current ; in wav_close()