• Home
  • Raw
  • Download

Lines Matching refs:sf

137 	if ((SF_CONTAINER (psf->sf.format)) != SF_FORMAT_W64)  in w64_open()
140 subformat = SF_CODEC (psf->sf.format) ; in w64_open()
148 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in w64_open()
151 { blockalign = wavlike_srate2blocksize (psf->sf.samplerate * psf->sf.channels) ; in w64_open()
160 if (psf->sf.frames <= 0) in w64_open()
161 psf->sf.frames = (psf->blockwidth) ? psf->filelength / psf->blockwidth : psf->filelength ; in w64_open()
319 if (! psf->sf.seekable) in w64_read_header()
361 if (psf->sf.seekable == 0 && (parsestage & HAVE_data)) in w64_read_header()
376 if (psf->sf.channels < 1) in w64_read_header()
379 if (psf->sf.channels > SF_MAX_CHANNELS) in w64_read_header()
389 psf->sf.frames = (psf->filelength - psf->dataoffset) / psf->blockwidth ; in w64_read_header()
391 psf->sf.frames = psf->datalength / psf->blockwidth ; in w64_read_header()
398 psf->sf.format = SF_FORMAT_W64 | u_bitwidth_to_subformat (psf->bytewidth * 8) ; in w64_read_header()
402 psf->sf.format = (SF_FORMAT_W64 | SF_FORMAT_ULAW) ; in w64_read_header()
406 psf->sf.format = (SF_FORMAT_W64 | SF_FORMAT_ALAW) ; in w64_read_header()
410 psf->sf.format = (SF_FORMAT_W64 | SF_FORMAT_MS_ADPCM) ; in w64_read_header()
416 psf->sf.format = (SF_FORMAT_W64 | SF_FORMAT_IMA_ADPCM) ; in w64_read_header()
422 psf->sf.format = (SF_FORMAT_W64 | SF_FORMAT_GSM610) ; in w64_read_header()
426 psf->sf.format = SF_FORMAT_W64 ; in w64_read_header()
427 psf->sf.format |= (psf->bytewidth == 8) ? SF_FORMAT_DOUBLE : SF_FORMAT_FLOAT ; in w64_read_header()
452 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in w64_write_header()
463 subformat = SF_CODEC (psf->sf.format) ; in w64_write_header()
475 …, "e8224", BHW8 (fmt_size), BHW2 (WAVE_FORMAT_PCM), BHW2 (psf->sf.channels), BHW4 (psf->sf.sampler… in w64_write_header()
477 … psf_binheader_writef (psf, "e4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in w64_write_header()
479 …psf_binheader_writef (psf, "e22", BHW2 (psf->bytewidth * psf->sf.channels), BHW2 (psf->bytewidth *… in w64_write_header()
489 …4", BHW8 (fmt_size), BHW2 (WAVE_FORMAT_IEEE_FLOAT), BHW2 (psf->sf.channels), BHW4 (psf->sf.sampler… in w64_write_header()
491 … psf_binheader_writef (psf, "e4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in w64_write_header()
493 …psf_binheader_writef (psf, "e22", BHW2 (psf->bytewidth * psf->sf.channels), BHW2 (psf->bytewidth *… in w64_write_header()
504 …"e8224", BHW8 (fmt_size), BHW2 (WAVE_FORMAT_MULAW), BHW2 (psf->sf.channels), BHW4 (psf->sf.sampler… in w64_write_header()
506 … psf_binheader_writef (psf, "e4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in w64_write_header()
508 psf_binheader_writef (psf, "e22", BHW2 (psf->bytewidth * psf->sf.channels), BHW2 (8)) ; in w64_write_header()
519 … "e8224", BHW8 (fmt_size), BHW2 (WAVE_FORMAT_ALAW), BHW2 (psf->sf.channels), BHW4 (psf->sf.sampler… in w64_write_header()
521 … psf_binheader_writef (psf, "e4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in w64_write_header()
523 psf_binheader_writef (psf, "e22", BHW2 (psf->bytewidth * psf->sf.channels), BHW2 (8)) ; in w64_write_header()
532 blockalign = wavlike_srate2blocksize (psf->sf.samplerate * psf->sf.channels) ; in w64_write_header()
533 framesperblock = 2 * (blockalign - 4 * psf->sf.channels) / psf->sf.channels + 1 ; in w64_write_header()
534 bytespersec = (psf->sf.samplerate * blockalign) / framesperblock ; in w64_write_header()
542 …ader_writef (psf, "e822", BHW8 (fmt_size), BHW2 (WAVE_FORMAT_IMA_ADPCM), BHW2 (psf->sf.channels)) ; in w64_write_header()
545 psf_binheader_writef (psf, "e44", BHW4 (psf->sf.samplerate), BHW4 (bytespersec)) ; in w64_write_header()
557 blockalign = wavlike_srate2blocksize (psf->sf.samplerate * psf->sf.channels) ; in w64_write_header()
558 framesperblock = 2 + 2 * (blockalign - 7 * psf->sf.channels) / psf->sf.channels ; in w64_write_header()
559 bytespersec = (psf->sf.samplerate * blockalign) / framesperblock ; in w64_write_header()
568 …eader_writef (psf, "e822", BHW8 (fmt_size), BHW2 (WAVE_FORMAT_MS_ADPCM), BHW2 (psf->sf.channels)) ; in w64_write_header()
571 psf_binheader_writef (psf, "e44", BHW4 (psf->sf.samplerate), BHW4 (bytespersec)) ; in w64_write_header()
586 bytespersec = (psf->sf.samplerate * WAVLIKE_GSM610_BLOCKSIZE) / WAVLIKE_GSM610_SAMPLES ; in w64_write_header()
594 …psf_binheader_writef (psf, "e822", BHW8 (fmt_size), BHW2 (WAVE_FORMAT_GSM610), BHW2 (psf->sf.chann… in w64_write_header()
597 psf_binheader_writef (psf, "e44", BHW4 (psf->sf.samplerate), BHW4 (bytespersec)) ; in w64_write_header()
614 …itef (psf, "eh88", BHWh (fact_MARKER16), BHW8 ((sf_count_t) (16 + 8 + 8)), BHW8 (psf->sf.frames)) ; in w64_write_header()