• Home
  • Raw
  • Download

Lines Matching refs:sf

94 	if ((SF_CONTAINER (psf->sf.format)) != SF_FORMAT_MAT5)  in mat5_open()
97 subformat = SF_CODEC (psf->sf.format) ; in mat5_open()
103 psf->endian = SF_ENDIAN (psf->sf.format) ; in mat5_open()
117 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in mat5_open()
175 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in mat5_write_header()
178 switch (SF_CODEC (psf->sf.format)) in mat5_write_header()
225 if (psf->sf.samplerate > 0xFFFF) in mat5_write_header()
226 psf_binheader_writef (psf, "44", BHW4 (MAT5_TYPE_COMP_UINT), BHW4 (psf->sf.samplerate)) ; in mat5_write_header()
228 { unsigned short samplerate = psf->sf.samplerate ; in mat5_write_header()
233 datasize = psf->sf.frames * psf->sf.channels * psf->bytewidth ; in mat5_write_header()
236 …ef (psf, "t4448", BHW4 (MAT5_TYPE_INT32), BHW4 (8), BHW4 (psf->sf.channels), BHW8 (psf->sf.frames)… in mat5_write_header()
239 datasize = psf->sf.frames * psf->sf.channels * psf->bytewidth ; in mat5_write_header()
325 { if (psf->sf.samplerate == 0) in mat5_read_header()
326 psf->sf.samplerate = 44100 ; in mat5_read_header()
373 psf->sf.samplerate = psf_lrint (samplerate) ; in mat5_read_header()
382 psf->sf.samplerate = samplerate ; in mat5_read_header()
388 psf->sf.samplerate = size ; in mat5_read_header()
463 psf->sf.channels = rows ; in mat5_read_header()
464 psf->sf.frames = cols ; in mat5_read_header()
466 psf->sf.format = psf->endian | SF_FORMAT_MAT5 ; in mat5_read_header()
471 psf->sf.format |= SF_FORMAT_DOUBLE ; in mat5_read_header()
477 psf->sf.format |= SF_FORMAT_FLOAT ; in mat5_read_header()
483 psf->sf.format |= SF_FORMAT_PCM_32 ; in mat5_read_header()
489 psf->sf.format |= SF_FORMAT_PCM_16 ; in mat5_read_header()
495 psf->sf.format |= SF_FORMAT_PCM_U8 ; in mat5_read_header()