Lines Matching defs:ptr
45 static sf_count_t vox_read_s (SF_PRIVATE *psf, short *ptr, sf_count_t len) ;
46 static sf_count_t vox_read_i (SF_PRIVATE *psf, int *ptr, sf_count_t len) ;
47 static sf_count_t vox_read_f (SF_PRIVATE *psf, float *ptr, sf_count_t len) ;
48 static sf_count_t vox_read_d (SF_PRIVATE *psf, double *ptr, sf_count_t len) ;
50 static sf_count_t vox_write_s (SF_PRIVATE *psf, const short *ptr, sf_count_t len) ;
51 static sf_count_t vox_write_i (SF_PRIVATE *psf, const int *ptr, sf_count_t len) ;
52 static sf_count_t vox_write_f (SF_PRIVATE *psf, const float *ptr, sf_count_t len) ;
53 static sf_count_t vox_write_d (SF_PRIVATE *psf, const double *ptr, sf_count_t len) ;
55 static int vox_read_block (SF_PRIVATE *psf, IMA_OKI_ADPCM *pvox, short *ptr, int len) ;
125 vox_read_block (SF_PRIVATE *psf, IMA_OKI_ADPCM *pvox, short *ptr, int len)
142 memcpy (&(ptr [indx]), pvox->pcm, pvox->pcm_count * sizeof (short)) ;
151 vox_read_s (SF_PRIVATE *psf, short *ptr, sf_count_t len)
163 count = vox_read_block (psf, pvox, ptr, readcount) ;
175 vox_read_i (SF_PRIVATE *psf, int *ptr, sf_count_t len)
192 ptr [total + k] = arith_shift_left (sptr [k], 16) ;
203 vox_read_f (SF_PRIVATE *psf, float *ptr, sf_count_t len)
223 ptr [total + k] = normfact * (float) (sptr [k]) ;
234 vox_read_d (SF_PRIVATE *psf, double *ptr, sf_count_t len)
254 ptr [total + k] = normfact * (double) (sptr [k]) ;
268 vox_write_block (SF_PRIVATE *psf, IMA_OKI_ADPCM *pvox, const short *ptr, int len)
274 memcpy (pvox->pcm, &(ptr [indx]), pvox->pcm_count * sizeof (short)) ;
288 vox_write_s (SF_PRIVATE *psf, const short *ptr, sf_count_t len)
300 count = vox_write_block (psf, pvox, ptr, writecount) ;
312 vox_write_i (SF_PRIVATE *psf, const int *ptr, sf_count_t len)
328 sptr [k] = ptr [total + k] >> 16 ;
340 vox_write_f (SF_PRIVATE *psf, const float *ptr, sf_count_t len)
359 sptr [k] = psf_lrintf (normfact * ptr [total + k]) ;
371 vox_write_d (SF_PRIVATE *psf, const double *ptr, sf_count_t len)
390 sptr [k] = psf_lrint (normfact * ptr [total + k]) ;