• Home
  • Raw
  • Download

Lines Matching refs:sf

66 		if ((SF_CONTAINER (psf->sf.format)) != SF_FORMAT_NIST)  in nist_open()
69 psf->endian = SF_ENDIAN (psf->sf.format) ; in nist_open()
73 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in nist_open()
74 psf->sf.frames = 0 ; in nist_open()
84 switch (SF_CODEC (psf->sf.format)) in nist_open()
175 sscanf (cptr, "channel_count -i %d", &(psf->sf.channels)) ; in nist_read_header()
178 sscanf (cptr, "sample_rate -i %d", &(psf->sf.samplerate)) ; in nist_read_header()
182 psf->sf.frames = samples ; in nist_read_header()
216 psf->sf.format |= psf->endian ; in nist_read_header()
227 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in nist_read_header()
235 psf->sf.format |= SF_FORMAT_PCM_S8 ; in nist_read_header()
239 psf->sf.format |= SF_FORMAT_PCM_16 ; in nist_read_header()
243 psf->sf.format |= SF_FORMAT_PCM_24 ; in nist_read_header()
247 psf->sf.format |= SF_FORMAT_PCM_32 ; in nist_read_header()
254 psf->sf.format |= encoding ; in nist_read_header()
259 switch (SF_CODEC (psf->sf.format)) in nist_read_header()
264 psf->sf.format = SF_FORMAT_NIST | SF_CODEC (psf->sf.format) ; in nist_read_header()
303 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in nist_write_header()
320 psf_asciiheader_printf (psf, "channel_count -i %d\n", psf->sf.channels) ; in nist_write_header()
321 psf_asciiheader_printf (psf, "sample_rate -i %d\n", psf->sf.samplerate) ; in nist_write_header()
323 switch (SF_CODEC (psf->sf.format)) in nist_write_header()
355 samples = psf->sf.frames ; in nist_write_header()