Lines Matching defs:samples
105 static int vorbis_rnull (SF_PRIVATE *psf, int samples, void *vptr, int off , int channels, float **pcm) ;
140 /* Offset of the first samples' granule position. */
142 /* Last valid samples' granule position. */
548 vorbis_rnull (SF_PRIVATE *UNUSED (psf), int samples, void *UNUSED (vptr), int UNUSED (off) , int channels, float **UNUSED (pcm))
550 return samples * channels ;
554 vorbis_rshort (SF_PRIVATE *psf, int samples, void *vptr, int off, int channels, float **pcm)
561 for (j = 0 ; j < samples ; j++)
567 for (j = 0 ; j < samples ; j++)
575 vorbis_rint (SF_PRIVATE *psf, int samples, void *vptr, int off, int channels, float **pcm)
583 for (j = 0 ; j < samples ; j++)
589 for (j = 0 ; j < samples ; j++)
597 vorbis_rfloat (SF_PRIVATE *UNUSED (psf), int samples, void *vptr, int off, int channels, float **pcm)
601 for (j = 0 ; j < samples ; j++)
608 vorbis_rdouble (SF_PRIVATE *UNUSED (psf), int samples, void *vptr, int off, int channels, float **pcm)
612 for (j = 0 ; j < samples ; j++)
623 int len, samples, i = 0 , nn ;
631 ** example, pcm [0] is left, and pcm [1] is right. samples is
635 while ((samples = vorbis_synthesis_pcmout (&vdata->vdsp, &pcm)) > 0)
636 { if (samples > len) samples = len ;
637 i += transfn (psf, samples, ptr, i, psf->sf.channels, pcm) ;
638 len -= samples ;
639 /* tell libvorbis how many samples we actually consumed */
640 vorbis_synthesis_read (&vdata->vdsp, samples) ;
641 vdata->gp += samples ;
646 /* Out of samples, load the next packet. */
804 /* Read out any samples that may be in the decoder from a seek without a
862 /* We are at the correct block, but still need to consume samples to reach
891 ** page also contains another half-block of samples waiting to be lapped
892 ** with the first half-block of samples from the next page.
979 ** packets. By calculating how many samples we can decode from the blocks
985 ** last page of a stream may have a granule position of fewer samples than
986 ** the page actually contains. The excess samples are padding leftovers
990 { /* Calculate how many samples can be decoded from blocks in this page,