Lines Matching refs:sf
63 subformat = SF_CODEC (psf->sf.format) ; in htk_open()
66 { if ((SF_CONTAINER (psf->sf.format)) != SF_FORMAT_HTK) in htk_open()
79 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in htk_open()
124 sample_period = 10000000 / psf->sf.samplerate ; in htk_write_header()
197 psf->sf.channels = 1 ; in htk_read_header()
200 { psf->sf.samplerate = 10000000 / sample_period ; in htk_read_header()
202 sample_count, sample_period, psf->sf.samplerate) ; in htk_read_header()
205 { psf->sf.samplerate = 16000 ; in htk_read_header()
207 sample_count, sample_period, psf->sf.samplerate) ; in htk_read_header()
210 psf->sf.format = SF_FORMAT_HTK | SF_FORMAT_PCM_16 ; in htk_read_header()
219 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in htk_read_header()
221 if (! psf->sf.frames && psf->blockwidth) in htk_read_header()
222 psf->sf.frames = (psf->filelength - psf->dataoffset) / psf->blockwidth ; in htk_read_header()