1.10 release
[picodrive.git] / Pico / cd / cd_file.h
CommitLineData
bf098bc5 1#ifndef _CD_FILE_H
2#define _CD_FILE_H
3
4#include <stdio.h>
5
6#ifdef __cplusplus
7extern "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
16struct _file_track {
17 FILE *F;
cb0316e4 18 int Length;
19 short Type; // can be char
20 short KBtps; // bytes per sec for mp3s (bitrate / 8)
bf098bc5 21};
22
23extern struct _file_track Tracks[100];
24extern char Track_Played;
25
26
27int FILE_Init(void);
28void FILE_End(void);
29int Load_ISO(const char *iso_name, int is_bin);
30void Unload_ISO(void);
31int FILE_Read_One_LBA_CDC(void);
32int FILE_Play_CD_LBA(void);
33
34
35#ifdef __cplusplus
36};
37#endif
38
39#endif