Previous 15994 Revisions Next

r10421 Sunday 13th February, 2011 at 20:34:42 UTC by Angelo Salese
[MEGACD]: Fixed CD-DA start position, fixed last track hook ... should be enough to have CD-DA sound in game too (even though there are Pause issues from time to time)
[src/mame/machine]megadriv.c

src/mame/machine/megadriv.c
r10420r10421
42194219   if(segacd.cd == NULL) // no cd is there, bail out
42204220      return;
42214221   CDD_STATUS |= SCD_STATUS;
4222   CDD_MIN = 1; // first    // HACK!!!!
4223   CDD_SEC = 1; // last    // HACK!!!!
4222   CDD_MIN = 1; // first
4223   CDD_SEC = to_bcd(cdrom_get_last_track(segacd.cd)+1,false); // last
42244224}
42254225
42264226void CDD_GetTrackAdr(void)
r10420r10421
42754275   SCD_STATUS = CDD_PLAYINGCDDA;
42764276   CDD_STATUS = 0x0102;
42774277   set_data_audio_mode();
4278   printf("%d Track played\n",SCD_CURTRK);
42784279   CDD_MIN = to_bcd(SCD_CURTRK, false);
42794280   if(!(CURRENT_TRACK_IS_DATA))
4280      cdda_start_audio( machine->device( "cdda" ), msf, end_msf - msf );
4281      cdda_start_audio( machine->device( "cdda" ), SCD_CURLBA, end_msf - SCD_CURLBA );
42814282   SET_CDC_READ
42824283}
42834284

Previous 15994 Revisions Next


© 1998-2018 The MESS Team