Lines Matching refs:num_read
208 int size, num_read, wrote; in play_samples() local
268 num_read = fread(buffer, 1, size * config.fragments, file); in play_samples()
269 if (num_read > 0) { in play_samples()
271 printf("%s: Doing first buffer write of %d\n", __func__, num_read); in play_samples()
272 wrote = compress_write(compress, buffer, num_read); in play_samples()
278 if (wrote != num_read) { in play_samples()
280 fprintf(stderr, "We wrote %d, DSP accepted %d\n", num_read, wrote); in play_samples()
293 num_read = fread(buffer, 1, size, file); in play_samples()
294 if (num_read > 0) { in play_samples()
295 wrote = compress_write(compress, buffer, num_read); in play_samples()
301 if (wrote != num_read) { in play_samples()
303 fprintf(stderr, "We wrote %d, DSP accepted %d\n", num_read, wrote); in play_samples()
310 } while (num_read > 0); in play_samples()