Lines Matching refs:sf
88 if ((SF_CONTAINER (psf->sf.format)) != SF_FORMAT_AVR) in avr_open()
102 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in avr_open()
125 psf->sf.channels = (hdr.mono & 1) + 1 ; in avr_read_header()
132 psf->sf.format = SF_FORMAT_AVR | SF_FORMAT_PCM_U8 ; in avr_read_header()
137 psf->sf.format = SF_FORMAT_AVR | SF_FORMAT_PCM_S8 ; in avr_read_header()
142 psf->sf.format = SF_FORMAT_AVR | SF_FORMAT_PCM_16 ; in avr_read_header()
153 psf->sf.frames = hdr.frames ; in avr_read_header()
154 psf->sf.samplerate = hdr.srate ; in avr_read_header()
156 psf_log_printf (psf, " Frames : %D\n", psf->sf.frames) ; in avr_read_header()
157 psf_log_printf (psf, " Sample rate : %d\n", psf->sf.samplerate) ; in avr_read_header()
175 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in avr_read_header()
177 if (psf->sf.frames == 0 && psf->blockwidth) in avr_read_header()
178 psf->sf.frames = (psf->filelength - psf->dataoffset) / psf->blockwidth ; in avr_read_header()
200 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in avr_write_header()
215 BHW2 (psf->sf.channels == 2 ? 0xFFFF : 0), BHW2 (psf->bytewidth * 8)) ; in avr_write_header()
217 sign = ((SF_CODEC (psf->sf.format)) == SF_FORMAT_PCM_U8) ? 0 : 0xFFFF ; in avr_write_header()
220 …psf_binheader_writef (psf, "E4444", BHW4 (psf->sf.samplerate), BHW4 (psf->sf.frames), BHW4 (0), BH… in avr_write_header()