+/***********************************************************\r
+ * *\r
+ * This source was taken from the Gens project *\r
+ * Written by Stéphane Dallongeville *\r
+ * Copyright (c) 2002 by Stéphane Dallongeville *\r
+ * Modified/adapted for PicoDrive by notaz, 2007 *\r
+ * *\r
+ ***********************************************************/\r
+\r
#include <stdio.h>\r
#include "cd_sys.h"\r
#include "cd_file.h"\r
#define PLAYING 0x0100 // PLAYING audio track CDD status\r
\r
\r
-/*\r
-int CDDA_Enable;\r
-\r
-int CD_Audio_Buffer_L[8192];\r
-int CD_Audio_Buffer_R[8192];\r
-int CD_Audio_Buffer_Read_Pos = 0;\r
-int CD_Audio_Buffer_Write_Pos = 2000;\r
-int CD_Audio_Starting;\r
-*/\r
-\r
static int CD_Present = 0;\r
-// int CD_Timer_Counter = 0; // TODO: check refs\r
-\r
\r
\r
#define CHECK_TRAY_OPEN \\r
}\r
\r
\r
-#if 0\r
-static void MSB2DWORD(unsigned int *d, unsigned char *b)\r
-{\r
- unsigned int retVal;\r
-\r
- retVal = (unsigned int )b[0];\r
- retVal = (retVal<<8) + (unsigned int )b[1];\r
- retVal = (retVal<<8) + (unsigned int )b[2];\r
- retVal = (retVal<<8) + (unsigned int )b[3];\r
-\r
- *d = retVal;\r
-}\r
-#endif\r
-\r
static int MSF_to_LBA(_msf *MSF)\r
{\r
return (MSF->M * 60 * 75) + (MSF->S * 75) + MSF->F - 150;\r