int Stop_CDD_c1 (void) { CHECK_TRAY_OPEN SCD.Status_CDC &= ~1; // Stop CDC read if (CD_Load_System == CDROM_) { return ASPI_Stop_Play_Scan (1, ASPI_Stop_CDD_c1_COMP); } else { if (CD_Present) SCD.Status_CDD = STOPPED; else SCD.Status_CDD = NOCD; CDD.Status = 0x0000; CDD.Control |= 0x0100; // Data bit set because stopped CDD.Minute = 0; CDD.Seconde = 0; CDD.Frame = 0; CDD.Ext = 0; } CDD_Complete = 1; return 0; }
void Stop_CD(void) { if (CD_Load_System == CDROM_) { ASPI_Lock(0); ASPI_Stop_Play_Scan(0, NULL); } else { Unload_ISO(); } }