132 |
|
void *fh; // File handle |
133 |
|
int block_size; // CD-ROM block size |
134 |
|
int twok_offset; // Offset of beginning of 2K block to last Prime position |
135 |
< |
uint32 start_byte; // Start of HFS partition on disk |
135 |
> |
loff_t start_byte; // Start of HFS partition on disk |
136 |
|
bool to_be_mounted; // Flag: drive must be mounted in accRun |
137 |
|
bool mount_non_hfs; // Flag: Issue disk-inserted events for non-HFS disks |
138 |
|
|
664 |
|
return offLinErr; |
665 |
|
|
666 |
|
uint8 start_m, start_s, start_f; |
667 |
< |
if (!position2msf(info, ReadMacInt16(pb + csParam), ReadMacInt32(pb + csParam + 2), false, start_m, start_s, start_f)) |
667 |
> |
if (!position2msf(*info, ReadMacInt16(pb + csParam), ReadMacInt32(pb + csParam + 2), false, start_m, start_s, start_f)) |
668 |
|
return paramErr; |
669 |
|
info->play_mode = ReadMacInt8(pb + csParam + 9) & 0x0f; |
670 |
|
if (!SysCDPlay(info->fh, start_m, start_s, start_f, info->stop_at[0], info->stop_at[1], info->stop_at[2])) |
681 |
|
|
682 |
|
if (ReadMacInt16(pb + csParam + 6)) { |
683 |
|
// Given stopping address |
684 |
< |
if (!position2msf(info, ReadMacInt16(pb + csParam), ReadMacInt32(pb + csParam + 2), true, info->stop_at[0], info->stop_at[1], info->stop_at[2])) |
684 |
> |
if (!position2msf(*info, ReadMacInt16(pb + csParam), ReadMacInt32(pb + csParam + 2), true, info->stop_at[0], info->stop_at[1], info->stop_at[2])) |
685 |
|
return paramErr; |
686 |
|
} else { |
687 |
|
// Given starting address |
688 |
|
uint8 start_m, start_s, start_f; |
689 |
< |
if (!position2msf(info, ReadMacInt16(pb + csParam), ReadMacInt32(pb + csParam + 2), false, start_m, start_s, start_f)) |
689 |
> |
if (!position2msf(*info, ReadMacInt16(pb + csParam), ReadMacInt32(pb + csParam + 2), false, start_m, start_s, start_f)) |
690 |
|
return paramErr; |
691 |
|
info->play_mode = ReadMacInt8(pb + csParam + 9) & 0x0f; |
692 |
|
if (!SysCDPlay(info->fh, start_m, start_s, start_f, info->stop_at[0], info->stop_at[1], info->stop_at[2])) |
723 |
|
return paramErr; |
724 |
|
} else { |
725 |
|
// Given stopping address |
726 |
< |
if (!position2msf(info, ReadMacInt16(pb + csParam), ReadMacInt32(pb + csParam + 2), true, info->stop_at[0], info->stop_at[1], info->stop_at[2])) |
726 |
> |
if (!position2msf(*info, ReadMacInt16(pb + csParam), ReadMacInt32(pb + csParam + 2), true, info->stop_at[0], info->stop_at[1], info->stop_at[2])) |
727 |
|
return paramErr; |
728 |
|
} |
729 |
|
return noErr; |
768 |
|
return offLinErr; |
769 |
|
|
770 |
|
uint8 start_m, start_s, start_f; |
771 |
< |
if (!position2msf(info, ReadMacInt16(pb + csParam), ReadMacInt32(pb + csParam + 2), false, start_m, start_s, start_f)) |
771 |
> |
if (!position2msf(*info, ReadMacInt16(pb + csParam), ReadMacInt32(pb + csParam + 2), false, start_m, start_s, start_f)) |
772 |
|
return paramErr; |
773 |
|
|
774 |
|
if (!SysCDScan(info->fh, start_m, start_s, start_f, ReadMacInt16(pb + csParam + 6))) |