/[svn]/libgig/trunk/src/Akai.h
ViewVC logotype

Diff of /libgig/trunk/src/Akai.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2572 by schoenebeck, Thu May 22 12:14:04 2014 UTC revision 2573 by schoenebeck, Thu May 22 15:17:09 2014 UTC
# Line 27  Line 27 
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    
# Line 42  Line 42 
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    
# Line 139  public: Line 141  public:
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;
# Line 149  protected: Line 151  protected:
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);

Legend:
Removed from v.2572  
changed lines
  Added in v.2573

  ViewVC Help
Powered by ViewVC