Lines Matching refs:sf
59 subformat = SF_CODEC (psf->sf.format) ; in pvf_open()
62 { if ((SF_CONTAINER (psf->sf.format)) != SF_FORMAT_PVF) in pvf_open()
75 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in pvf_open()
116 psf->sf.channels, psf->sf.samplerate, psf->bytewidth * 8) ; in pvf_write_header()
154 psf->sf.channels = channels ; in pvf_read_header()
155 psf->sf.samplerate = samplerate ; in pvf_read_header()
159 psf->sf.format = SF_FORMAT_PVF | SF_FORMAT_PCM_S8 ; in pvf_read_header()
164 psf->sf.format = SF_FORMAT_PVF | SF_FORMAT_PCM_16 ; in pvf_read_header()
168 psf->sf.format = SF_FORMAT_PVF | SF_FORMAT_PCM_32 ; in pvf_read_header()
182 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in pvf_read_header()
184 if (! psf->sf.frames && psf->blockwidth) in pvf_read_header()
185 psf->sf.frames = (psf->filelength - psf->dataoffset) / psf->blockwidth ; in pvf_read_header()