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()
519 sf_count_t sf_readf_int(SNDFILE *handle, int *ptr, sf_count_t desiredFrames) in sf_readf_int() argument
522 desiredFrames <= 0) { in sf_readf_int()
525 if (handle->remaining < (size_t) desiredFrames) { in sf_readf_int()
526 desiredFrames = handle->remaining; in sf_readf_int()
529 size_t desiredBytes = desiredFrames * handle->bytesPerFrame; in sf_readf_int()
570 sf_count_t sf_writef_short(SNDFILE *handle, const short *ptr, sf_count_t desiredFrames) in sf_writef_short() argument
572 if (handle == NULL || handle->mode != SFM_WRITE || ptr == NULL || desiredFrames <= 0) in sf_writef_short()
574 size_t desiredBytes = desiredFrames * handle->bytesPerFrame; in sf_writef_short()
589 my_swab((short *) handle->temp, desiredFrames * handle->info.channels); in sf_writef_short()
596 desiredFrames * handle->info.channels); in sf_writef_short()
607 sf_count_t sf_writef_float(SNDFILE *handle, const float *ptr, sf_count_t desiredFrames) in sf_writef_float() argument
609 if (handle == NULL || handle->mode != SFM_WRITE || ptr == NULL || desiredFrames <= 0) in sf_writef_float()
611 size_t desiredBytes = desiredFrames * handle->bytesPerFrame; in sf_writef_float()
620 desiredFrames * handle->info.channels); in sf_writef_float()
632 sf_count_t sf_writef_int(SNDFILE *handle, const int *ptr, sf_count_t desiredFrames) in sf_writef_int() argument
634 if (handle == NULL || handle->mode != SFM_WRITE || ptr == NULL || desiredFrames <= 0) in sf_writef_int()
636 size_t desiredBytes = desiredFrames * handle->bytesPerFrame; in sf_writef_int()