27 |
|
|
28 |
// for use with autoconf |
// for use with autoconf |
29 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
30 |
#include <config.h> |
# include <config.h> |
31 |
#endif |
#endif |
32 |
|
|
33 |
#if !defined(_CARBON_) && !defined(_WIN32_) |
#if !defined(_CARBON_) && !defined(__APPLE__) && !defined(_WIN32_) |
34 |
# define LINUX 1 |
# define LINUX 1 |
35 |
#endif |
#endif |
36 |
|
|
42 |
#include <list> |
#include <list> |
43 |
#include <fstream> |
#include <fstream> |
44 |
|
|
45 |
#if LINUX |
#if defined(_CARBON_) || defined(__APPLE__) || LINUX |
46 |
# include <sys/types.h> |
# include <sys/types.h> |
47 |
# include <sys/stat.h> |
# include <sys/stat.h> |
48 |
# include <sys/fcntl.h> |
# include <sys/fcntl.h> |
49 |
# include <sys/ioctl.h> |
# include <sys/ioctl.h> |
50 |
# include <unistd.h> |
# include <unistd.h> |
51 |
|
#endif |
52 |
|
#if LINUX |
53 |
# include <linux/cdrom.h> |
# include <linux/cdrom.h> |
54 |
#endif |
#endif |
55 |
|
|
141 |
}*/ |
}*/ |
142 |
|
|
143 |
protected: |
protected: |
144 |
#ifdef _WIN32_ |
#ifdef WIN32 |
145 |
HANDLE mFile; |
HANDLE mFile; |
146 |
#elif defined _CARBON_ || LINUX |
#elif defined _CARBON_ || defined(__APPLE__) || LINUX |
147 |
int mFile; |
int mFile; |
148 |
#endif |
#endif |
149 |
bool mRegularFile; |
bool mRegularFile; |
151 |
int mCluster; |
int mCluster; |
152 |
int mClusterSize; |
int mClusterSize; |
153 |
int mSize; /* in bytes */ |
int mSize; /* in bytes */ |
|
#if LINUX |
|
154 |
/* start and end of the data track we chose (if we're reading from CDROM) */ |
/* start and end of the data track we chose (if we're reading from CDROM) */ |
155 |
int mStartFrame; |
int mStartFrame; |
156 |
int mEndFrame; |
int mEndFrame; |
|
#endif // LINUX |
|
157 |
char* mpCache; |
char* mpCache; |
158 |
|
|
159 |
void OpenStream(const char* path); |
void OpenStream(const char* path); |