Lines Matching refs:sf
73 if ((SF_CONTAINER (psf->sf.format)) != SF_FORMAT_MPC2K) in mpc2k_open()
85 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in mpc2k_open()
120 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in mpc2k_write_header()
137 psf_binheader_writef (psf, "e111", BHW1 (100), BHW1 (0), BHW1 ((psf->sf.channels - 1) & 1)) ; in mpc2k_write_header()
138 …nheader_writef (psf, "et4888", BHW4 (0), BHW8 (psf->sf.frames), BHW8 (psf->sf.frames), BHW8 (psf->… in mpc2k_write_header()
139 psf_binheader_writef (psf, "e112", BHW1 (0), BHW1 (1), BHW2 ((uint16_t) psf->sf.samplerate)) ; in mpc2k_write_header()
176 psf->sf.channels = bytes [2] ? 2 : 1 ; in mpc2k_read_header()
186 psf->sf.samplerate = sample_rate ; in mpc2k_read_header()
188 psf->sf.format = SF_FORMAT_MPC2K | SF_FORMAT_PCM_16 ; in mpc2k_read_header()
197 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in mpc2k_read_header()
198 psf->sf.frames = psf->datalength / psf->blockwidth ; in mpc2k_read_header()
200 psf->sf.frames = (psf->filelength - psf->dataoffset) / psf->blockwidth ; in mpc2k_read_header()