• Home
  • Raw
  • Download

Lines Matching refs:remaining

35     size_t remaining;   // frames unread for SFM_READ, frames written for SFM_WRITE  member
110 size_t remaining = riffSize - 4; in sf_open_read() local
114 while (remaining >= 8) { in sf_open_read()
123 remaining -= 8; in sf_open_read()
125 if (chunkSize > remaining) { in sf_open_read()
127 fprintf(stderr, "chunkSize %u > remaining %zu\n", chunkSize, remaining); in sf_open_read()
243 handle->remaining = chunkSize / handle->bytesPerFrame; in sf_open_read()
244 handle->info.frames = handle->remaining; in sf_open_read()
265 remaining -= chunkSize; in sf_open_read()
267 if (remaining > 0) { in sf_open_read()
269 fprintf(stderr, "partial chunk at end of RIFF, remaining %zu\n", remaining); in sf_open_read()
372 handle->remaining = 0; in sf_open_write()
409 unsigned dataSize = handle->remaining * handle->bytesPerFrame; in sf_close()
421 if (handle == NULL || handle->mode != SFM_READ || ptr == NULL || !handle->remaining || in sf_readf_short()
425 if (handle->remaining < (size_t) desiredFrames) { in sf_readf_short()
426 desiredFrames = handle->remaining; in sf_readf_short()
440 handle->remaining -= actualFrames; in sf_readf_short()
470 if (handle == NULL || handle->mode != SFM_READ || ptr == NULL || !handle->remaining || in sf_readf_float()
474 if (handle->remaining < (size_t) desiredFrames) { in sf_readf_float()
475 desiredFrames = handle->remaining; in sf_readf_float()
489 handle->remaining -= actualFrames; in sf_readf_float()
518 if (handle == NULL || handle->mode != SFM_READ || ptr == NULL || !handle->remaining || in sf_readf_int()
522 if (handle->remaining < (size_t) desiredFrames) { in sf_readf_int()
523 desiredFrames = handle->remaining; in sf_readf_int()
537 handle->remaining -= actualFrames; in sf_readf_int()
597 handle->remaining += actualFrames; in sf_writef_short()
622 handle->remaining += actualFrames; in sf_writef_float()
640 handle->remaining += actualFrames; in sf_writef_int()