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