Lines Matching refs:sf
88 subformat = SF_CODEC (psf->sf.format) ; in ircam_open()
91 { if ((SF_CONTAINER (psf->sf.format)) != SF_FORMAT_IRCAM) in ircam_open()
94 psf->endian = SF_ENDIAN (psf->sf.format) ; in ircam_open()
141 psf_binheader_readf (psf, "epmf44", 0, &marker, &samplerate, &(psf->sf.channels), &encoding) ; in ircam_read_header()
150 if (psf->sf.channels > SF_MAX_CHANNELS) in ircam_read_header()
151 { psf_binheader_readf (psf, "Epmf44", 0, &marker, &samplerate, &(psf->sf.channels), &encoding) ; in ircam_read_header()
154 if (psf->sf.channels > SF_MAX_CHANNELS) in ircam_read_header()
164 psf->sf.samplerate = (int) samplerate ; in ircam_read_header()
169 psf->sf.samplerate, psf->sf.channels, encoding, get_encoding_str (encoding)) ; in ircam_read_header()
174 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in ircam_read_header()
176 psf->sf.format = SF_FORMAT_IRCAM | SF_FORMAT_PCM_16 ; in ircam_read_header()
181 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in ircam_read_header()
183 psf->sf.format = SF_FORMAT_IRCAM | SF_FORMAT_PCM_32 ; in ircam_read_header()
188 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in ircam_read_header()
190 psf->sf.format = SF_FORMAT_IRCAM | SF_FORMAT_FLOAT ; in ircam_read_header()
195 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in ircam_read_header()
197 psf->sf.format = SF_FORMAT_IRCAM | SF_FORMAT_ALAW ; in ircam_read_header()
202 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in ircam_read_header()
204 psf->sf.format = SF_FORMAT_IRCAM | SF_FORMAT_ULAW ; in ircam_read_header()
213 psf->sf.format |= SF_ENDIAN_BIG ; in ircam_read_header()
215 psf->sf.format |= SF_ENDIAN_LITTLE ; in ircam_read_header()
223 if (psf->sf.frames == 0 && psf->blockwidth) in ircam_read_header()
224 psf->sf.frames = psf->datalength / psf->blockwidth ; in ircam_read_header()
226 psf_log_printf (psf, " Samples : %d\n", psf->sf.frames) ; in ircam_read_header()
253 encoding = get_encoding (SF_CODEC (psf->sf.format)) ; in ircam_write_header()
265 samplerate = psf->sf.samplerate ; in ircam_write_header()
270 psf_binheader_writef (psf, "E44", BHW4 (psf->sf.channels), BHW4 (encoding)) ; in ircam_write_header()
275 psf_binheader_writef (psf, "e44", BHW4 (psf->sf.channels), BHW4 (encoding)) ; in ircam_write_header()