Home
last modified time | relevance | path

Searched refs:desiredFrames (Results 1 – 1 of 1) sorted by relevance

/system/media/audio_utils/
Dtinysndfile.c419 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()
[all …]