| 1 | #ifndef _CD_FILE_H |
| 2 | #define _CD_FILE_H |
| 3 | |
| 4 | #include <stdio.h> |
| 5 | |
| 6 | #ifdef __cplusplus |
| 7 | extern "C" { |
| 8 | #endif |
| 9 | |
| 10 | #define TYPE_ISO 1 |
| 11 | #define TYPE_BIN 2 |
| 12 | #define TYPE_MP3 3 |
| 13 | //#define TYPE_WAV 4 |
| 14 | |
| 15 | |
| 16 | struct _file_track { |
| 17 | FILE *F; |
| 18 | int Lenght; |
| 19 | int Type; |
| 20 | }; |
| 21 | |
| 22 | extern struct _file_track Tracks[100]; |
| 23 | extern char Track_Played; |
| 24 | |
| 25 | |
| 26 | int FILE_Init(void); |
| 27 | void FILE_End(void); |
| 28 | int Load_ISO(const char *iso_name, int is_bin); |
| 29 | void Unload_ISO(void); |
| 30 | int FILE_Read_One_LBA_CDC(void); |
| 31 | int FILE_Play_CD_LBA(void); |
| 32 | |
| 33 | |
| 34 | #ifdef __cplusplus |
| 35 | }; |
| 36 | #endif |
| 37 | |
| 38 | #endif |