• Home
  • Raw
  • Download

Lines Matching refs:desiredFrames

419 sf_count_t sf_readf_short(SNDFILE *handle, short *ptr, sf_count_t desiredFrames)  in sf_readf_short()  argument
422 desiredFrames <= 0) { in sf_readf_short()
425 if (handle->remaining < (size_t) desiredFrames) { in sf_readf_short()
426 desiredFrames = handle->remaining; in sf_readf_short()
429 size_t desiredBytes = desiredFrames * handle->bytesPerFrame; in sf_readf_short()
468 sf_count_t sf_readf_float(SNDFILE *handle, float *ptr, sf_count_t desiredFrames) in sf_readf_float() argument
471 desiredFrames <= 0) { in sf_readf_float()
474 if (handle->remaining < (size_t) desiredFrames) { in sf_readf_float()
475 desiredFrames = handle->remaining; in sf_readf_float()
478 size_t desiredBytes = desiredFrames * handle->bytesPerFrame; in sf_readf_float()
516 sf_count_t sf_readf_int(SNDFILE *handle, int *ptr, sf_count_t desiredFrames) in sf_readf_int() argument
519 desiredFrames <= 0) { in sf_readf_int()
522 if (handle->remaining < (size_t) desiredFrames) { in sf_readf_int()
523 desiredFrames = handle->remaining; in sf_readf_int()
526 size_t desiredBytes = desiredFrames * handle->bytesPerFrame; in sf_readf_int()
564 sf_count_t sf_writef_short(SNDFILE *handle, const short *ptr, sf_count_t desiredFrames) in sf_writef_short() argument
566 if (handle == NULL || handle->mode != SFM_WRITE || ptr == NULL || desiredFrames <= 0) in sf_writef_short()
568 size_t desiredBytes = desiredFrames * handle->bytesPerFrame; in sf_writef_short()
583 my_swab((short *) handle->temp, desiredFrames * handle->info.channels); in sf_writef_short()
590 desiredFrames * handle->info.channels); in sf_writef_short()
601 sf_count_t sf_writef_float(SNDFILE *handle, const float *ptr, sf_count_t desiredFrames) in sf_writef_float() argument
603 if (handle == NULL || handle->mode != SFM_WRITE || ptr == NULL || desiredFrames <= 0) in sf_writef_float()
605 size_t desiredBytes = desiredFrames * handle->bytesPerFrame; in sf_writef_float()
614 desiredFrames * handle->info.channels); in sf_writef_float()
626 sf_count_t sf_writef_int(SNDFILE *handle, const int *ptr, sf_count_t desiredFrames) in sf_writef_int() argument
628 if (handle == NULL || handle->mode != SFM_WRITE || ptr == NULL || desiredFrames <= 0) in sf_writef_int()
630 size_t desiredBytes = desiredFrames * handle->bytesPerFrame; in sf_writef_int()