Lines Matching defs:read

287 addPcmBuffer(PcmBuffer * b, void *a0, void *a1, int read)
294 if (read < 0) {
297 if (b->skip_start >= read) {
298 b->skip_start -= read;
301 a_n = read - b->skip_start;
392 /* read mp3 file until mpglib returns one frame of PCM data */
465 size_t const read = fread(buffer, 1, bytes_to_skip, fp);
466 if (read < 1) {
469 assert( read <= LONG_MAX );
470 offset -= (long) read;
491 size_t const read = fread(buffer, 1, bytes_to_skip, fp);
492 if (read < 1) {
495 assert( read <= LONG_MAX );
496 offset -= (long) read;
731 int used = 0, read = 0;
733 read = get_audio_common(gfp, buffer, NULL);
734 used = addPcmBuffer(&global.pcm32, buffer[0], buffer[1], read);
735 } while (used <= 0 && read > 0);
736 if (read < 0) {
737 return read;
752 int used = 0, read = 0;
754 read = get_audio_common(gfp, NULL, buffer);
755 used = addPcmBuffer(&global.pcm16, buffer[0], buffer[1], read);
756 } while (used <= 0 && read > 0);
757 if (read < 0) {
758 return read;
772 returns: samples read
797 * so there is no reason to read the input data in chuncks of
799 * will get out of sync if we read more than framesize worth of data.
804 /* if this flag has been set, then we are carefull to read
827 would be 0, but we need to read some samples, so don't
1279 unpack_read_samples - read and unpack signed low-to-high byte or unsigned
1288 returns: number of samples read
1372 * into #sample_buffer[]#. Returns the number of samples read.
1411 error_printf("Error: unexpected number of samples to read: %d\n", samples_to_read);
1472 * read, and we're pretty sure that we're looking at a WAV file.
1634 * read, and we're pretty sure that we're looking at an AIFF file.
2275 /* skip rest of AID, except for 6 bytes we have already read */
2278 /* read 4 more bytes to set up buffer for MP3 header check */
2375 /* read until we get a valid output frame */