Lines Matching refs:bytesread
470 { uint32_t thisread, bytesread, cue_count, position, offset ; in wav_read_header() local
473 bytesread = psf_binheader_readf (psf, "4", &cue_count) ; in wav_read_header()
478 psf_binheader_readf (psf, "j", chunk_size - bytesread) ; in wav_read_header()
498 bytesread += thisread ; in wav_read_header()
520 if (bytesread != chunk_size) in wav_read_header()
521 { psf_log_printf (psf, "**** Chunk size weirdness (%d != %d)\n", chunk_size, bytesread) ; in wav_read_header()
522 psf_binheader_readf (psf, "j", chunk_size - bytesread) ; in wav_read_header()
1297 uint32_t thisread, bytesread = 0, dword, sampler_data, loop_count, actually_loop_count = 0 ; in wav_read_smpl_chunk() local
1303 bytesread += psf_binheader_readf (psf, "4", &dword) ; in wav_read_smpl_chunk()
1306 bytesread += psf_binheader_readf (psf, "4", &dword) ; in wav_read_smpl_chunk()
1309 bytesread += psf_binheader_readf (psf, "4", &dword) ; in wav_read_smpl_chunk()
1312 bytesread += psf_binheader_readf (psf, "4", ¬e) ; in wav_read_smpl_chunk()
1315 bytesread += psf_binheader_readf (psf, "4", &pitch) ; in wav_read_smpl_chunk()
1324 bytesread += psf_binheader_readf (psf, "4", &dword) ; in wav_read_smpl_chunk()
1327 bytesread += psf_binheader_readf (psf, "4", &dword) ; in wav_read_smpl_chunk()
1332 bytesread += psf_binheader_readf (psf, "4", &loop_count) ; in wav_read_smpl_chunk()
1335 if (loop_count == 0 && chunklen == bytesread) in wav_read_smpl_chunk()
1341 bytesread += psf_binheader_readf (psf, "4", &sampler_data) ; in wav_read_smpl_chunk()
1353 for (j = 0 ; loop_count > 0 && chunklen - bytesread >= 24 ; j ++) in wav_read_smpl_chunk()
1356 bytesread += thisread ; in wav_read_smpl_chunk()
1359 bytesread += psf_binheader_readf (psf, "4", &type) ; in wav_read_smpl_chunk()
1362 bytesread += psf_binheader_readf (psf, "4", &start) ; in wav_read_smpl_chunk()
1365 bytesread += psf_binheader_readf (psf, "4", &end) ; in wav_read_smpl_chunk()
1368 bytesread += psf_binheader_readf (psf, "4", &dword) ; in wav_read_smpl_chunk()
1371 bytesread += psf_binheader_readf (psf, "4", &count) ; in wav_read_smpl_chunk()
1407 if (chunklen - bytesread == 0) in wav_read_smpl_chunk()
1414 { if (sampler_data != chunklen - bytesread) in wav_read_smpl_chunk()
1415 …g_printf (psf, " Sampler Data : %u (should have been %u)\n", sampler_data, chunklen - bytesread) ; in wav_read_smpl_chunk()
1416 sampler_data = chunklen - bytesread ; in wav_read_smpl_chunk()
1430 bytesread += thisread ; in wav_read_smpl_chunk()
1480 uint32_t bytesread = 0 ; in wav_read_acid_chunk() local
1487 bytesread += psf_binheader_readf (psf, "422f", &flags, &rootnote, &q1, &q2) ; in wav_read_acid_chunk()
1501 bytesread += psf_binheader_readf (psf, "422f", &beats, &meter_denom, &meter_numer, &tempo) ; in wav_read_acid_chunk()
1506 psf_binheader_readf (psf, "j", chunklen - bytesread) ; in wav_read_acid_chunk()