X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=Pico%2Fcd%2Fcd_sys.c;h=390c3094d3a279fbad106e174e3ddd3ba7f02438;hb=6cadc2da0070781cf2d8fcff84265d3ca1f423b9;hp=5bcd3cf119885d4df2ea4d228dbda7807af070d0;hpb=4696954094ca11200b8b08e8a9bfb231cf21fb86;p=picodrive.git diff --git a/Pico/cd/cd_sys.c b/Pico/cd/cd_sys.c index 5bcd3cf..390c309 100644 --- a/Pico/cd/cd_sys.c +++ b/Pico/cd/cd_sys.c @@ -1,3 +1,12 @@ +/*********************************************************** + * * + * This source was taken from the Gens project * + * Written by Stéphane Dallongeville * + * Copyright (c) 2002 by Stéphane Dallongeville * + * Modified/adapted for PicoDrive by notaz, 2007 * + * * + ***********************************************************/ + #include #include "cd_sys.h" #include "cd_file.h" @@ -17,19 +26,7 @@ #define PLAYING 0x0100 // PLAYING audio track CDD status -/* -int CDDA_Enable; - -int CD_Audio_Buffer_L[8192]; -int CD_Audio_Buffer_R[8192]; -int CD_Audio_Buffer_Read_Pos = 0; -int CD_Audio_Buffer_Write_Pos = 2000; -int CD_Audio_Starting; -*/ - static int CD_Present = 0; -// int CD_Timer_Counter = 0; // TODO: check refs - #define CHECK_TRAY_OPEN \ @@ -65,20 +62,6 @@ if (!CD_Present) \ } -#if 0 -static void MSB2DWORD(unsigned int *d, unsigned char *b) -{ - unsigned int retVal; - - retVal = (unsigned int )b[0]; - retVal = (retVal<<8) + (unsigned int )b[1]; - retVal = (retVal<<8) + (unsigned int )b[2]; - retVal = (retVal<<8) + (unsigned int )b[3]; - - *d = retVal; -} -#endif - static int MSF_to_LBA(_msf *MSF) { return (MSF->M * 60 * 75) + (MSF->S * 75) + MSF->F - 150;