Lines Matching refs:sf
86 if ((SF_CONTAINER (psf->sf.format)) != SF_FORMAT_AVR)
100 psf->blockwidth = psf->bytewidth * psf->sf.channels ;
123 psf->sf.channels = (hdr.mono & 1) + 1 ;
130 psf->sf.format = SF_FORMAT_AVR | SF_FORMAT_PCM_U8 ;
135 psf->sf.format = SF_FORMAT_AVR | SF_FORMAT_PCM_S8 ;
140 psf->sf.format = SF_FORMAT_AVR | SF_FORMAT_PCM_16 ;
151 psf->sf.frames = hdr.frames ;
152 psf->sf.samplerate = hdr.srate ;
154 psf_log_printf (psf, " Frames : %D\n", psf->sf.frames) ;
155 psf_log_printf (psf, " Sample rate : %d\n", psf->sf.samplerate) ;
173 psf->blockwidth = psf->sf.channels * psf->bytewidth ;
175 if (psf->sf.frames == 0 && psf->blockwidth)
176 psf->sf.frames = (psf->filelength - psf->dataoffset) / psf->blockwidth ;
198 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ;
213 BHW2 (psf->sf.channels == 2 ? 0xFFFF : 0), BHW2 (psf->bytewidth * 8)) ;
215 sign = ((SF_CODEC (psf->sf.format)) == SF_FORMAT_PCM_U8) ? 0 : 0xFFFF ;
218 psf_binheader_writef (psf, "E4444", BHW4 (psf->sf.samplerate), BHW4 (psf->sf.frames), BHW4 (0), BHW4 (0)) ;