mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-10 18:29:44 +00:00
Adding CD scan stub
This commit is contained in:
parent
64d6c0668f
commit
c7594f569a
@ -765,6 +765,15 @@ bool CDPlay_bincue(void *fh, uint8 start_m, uint8 start_s, uint8 start_f,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool CDScan_bincue(void *fh, uint8 start_m, uint8 start_s, uint8 start_f, bool reverse) {
|
||||||
|
CueSheet *cs = (CueSheet *)fh;
|
||||||
|
if (cs && cs == player.cs) {
|
||||||
|
// stub
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
void CDSetVol_bincue(void* fh, uint8 left, uint8 right) {
|
void CDSetVol_bincue(void* fh, uint8 left, uint8 right) {
|
||||||
CueSheet *cs = (CueSheet *)fh;
|
CueSheet *cs = (CueSheet *)fh;
|
||||||
if (cs && cs == player.cs) {
|
if (cs && cs == player.cs) {
|
||||||
|
@ -34,6 +34,7 @@ extern bool CDPlay_bincue(void *, uint8, uint8,
|
|||||||
extern bool CDPause_bincue(void *);
|
extern bool CDPause_bincue(void *);
|
||||||
extern bool CDResume_bincue(void *);
|
extern bool CDResume_bincue(void *);
|
||||||
extern bool CDStop_bincue(void *);
|
extern bool CDStop_bincue(void *);
|
||||||
|
extern bool CDScan_bincue(void *, uint8, uint8, uint8, bool);
|
||||||
extern void CDSetVol_bincue(void *, uint8, uint8);
|
extern void CDSetVol_bincue(void *, uint8, uint8);
|
||||||
extern void CDGetVol_bincue(void *, uint8 *, uint8 *);
|
extern void CDGetVol_bincue(void *, uint8 *, uint8 *);
|
||||||
|
|
||||||
|
@ -1407,8 +1407,13 @@ bool SysCDScan(void *arg, uint8 start_m, uint8 start_s, uint8 start_f, bool reve
|
|||||||
mac_file_handle *fh = (mac_file_handle *)arg;
|
mac_file_handle *fh = (mac_file_handle *)arg;
|
||||||
if (!fh)
|
if (!fh)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Not supported under Linux
|
#if defined(BINCUE)
|
||||||
|
if (fh->is_bincue)
|
||||||
|
return CDScan_bincue(fh->bincue_fd,start_m,start_s,start_f,reverse);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Not supported outside bincue
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user