1.10 release
[picodrive.git] / Pico / cd / cd_file.h
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 Length;
19         short Type; // can be char
20         short KBtps; // bytes per sec for mp3s (bitrate / 8)
21 };
22
23 extern struct _file_track Tracks[100];
24 extern char Track_Played;
25
26
27 int FILE_Init(void);
28 void FILE_End(void);
29 int Load_ISO(const char *iso_name, int is_bin);
30 void Unload_ISO(void);
31 int FILE_Read_One_LBA_CDC(void);
32 int FILE_Play_CD_LBA(void);
33
34
35 #ifdef __cplusplus
36 };
37 #endif
38
39 #endif