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))) |