Lines Matching defs:read
492 // last read can read between 1 and 7 frames only, to not overflow
496 scsi_read_cd read;
497 read.start_m = firstFrame / kFramesPerMinute;
498 read.start_s = (firstFrame / kFramesPerSecond) % 60;
499 read.start_f = firstFrame % kFramesPerSecond;
501 read.length_m = count / kFramesPerMinute;
502 read.length_s = (count / kFramesPerSecond) % 60;
503 read.length_f = count % kFramesPerSecond;
505 read.buffer_length = count * kFrameSize;
506 read.buffer = (char *)buffer;
507 read.play = false;
509 if (ioctl(fd, B_SCSI_READ_CD, &read, sizeof(scsi_read_cd)) < 0) {
510 // drive couldn't read data - try again to read with a smaller block size