Lines Matching refs:wpriv
87 { WAVLIKE_PRIVATE *wpriv ; in rf64_open() local
91 if ((wpriv = calloc (1, sizeof (WAVLIKE_PRIVATE))) == NULL) in rf64_open()
93 psf->container_data = wpriv ; in rf64_open()
94 wpriv->wavex_ambisonic = SF_AMBISONIC_NONE ; in rf64_open()
180 { WAVLIKE_PRIVATE *wpriv ; in rf64_read_header() local
186 if ((wpriv = psf->container_data) == NULL) in rf64_read_header()
188 wav_fmt = &wpriv->wav_fmt ; in rf64_read_header()
477 if (wpriv->fmt_is_broken) in rf64_read_header()
525 { WAVLIKE_PRIVATE *wpriv ; in rf64_write_fmt_chunk() local
528 if ((wpriv = psf->container_data) == NULL) in rf64_write_fmt_chunk()
561 if (wpriv->wavex_ambisonic != SF_AMBISONIC_NONE) in rf64_write_fmt_chunk()
563 else if (wpriv->wavex_channelmask != 0) in rf64_write_fmt_chunk()
564 psf_binheader_writef (psf, "4", BHW4 (wpriv->wavex_channelmask)) ; in rf64_write_fmt_chunk()
611 wavlike_write_guid (psf, wpriv->wavex_ambisonic == SF_AMBISONIC_NONE ? in rf64_write_fmt_chunk()
617 wavlike_write_guid (psf, wpriv->wavex_ambisonic == SF_AMBISONIC_NONE ? in rf64_write_fmt_chunk()
640 WAVLIKE_PRIVATE *wpriv ; in rf64_write_header() local
642 if ((wpriv = psf->container_data) == NULL) in rf64_write_header()
666 if (wpriv->rf64_downgrade && psf->filelength < RIFF_DOWNGRADE_BYTES) in rf64_write_header()
749 if (wpriv->rf64_downgrade && (psf->filelength < RIFF_DOWNGRADE_BYTES)) in rf64_write_header()
816 { WAVLIKE_PRIVATE *wpriv ; in rf64_command() local
818 if ((wpriv = psf->container_data) == NULL) in rf64_command()
825 wpriv->wavex_ambisonic = SF_AMBISONIC_NONE ; in rf64_command()
827 wpriv->wavex_ambisonic = SF_AMBISONIC_B_FORMAT ; in rf64_command()
831 return wpriv->wavex_ambisonic ; in rf64_command()
834 return wpriv->wavex_ambisonic ; in rf64_command()
837 wpriv->wavex_channelmask = wavlike_gen_channel_mask (psf->channel_map, psf->sf.channels) ; in rf64_command()
838 return (wpriv->wavex_channelmask != 0) ; in rf64_command()
842 wpriv->rf64_downgrade = datasize ? SF_TRUE : SF_FALSE ; in rf64_command()
843 return wpriv->rf64_downgrade ; in rf64_command()