mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-18 18:21:38 +00:00
7b0104e9a1
git-svn-id: https://svn.eduke32.com/eduke32@452 1a8010ca-5511-0410-912e-c29ae57300e0
25 lines
654 B
C++
Executable file
25 lines
654 B
C++
Executable file
#ifndef __file_hpp__
|
|
#define __file_hpp__
|
|
|
|
class JFAudFile {
|
|
public:
|
|
typedef enum { Cur, Set, End } SeekFrom;
|
|
|
|
JFAudFile();
|
|
JFAudFile(const char *filename, const char *subfilename = (const char*)0);
|
|
virtual ~JFAudFile();
|
|
virtual bool IsOpen(void) const = 0;
|
|
|
|
virtual long Read(long nbytes, void *buf) = 0;
|
|
virtual bool ReadByte(char *);
|
|
virtual bool ReadShort(short *, bool big=false);
|
|
virtual bool ReadLong(int *, bool big=false);
|
|
|
|
virtual long Seek(long pos, SeekFrom where) = 0;
|
|
virtual long Tell(void) const = 0;
|
|
virtual long Length(void) const = 0;
|
|
|
|
virtual int Rewind(void) { return Seek(0,Set); }
|
|
};
|
|
|
|
#endif
|