fmodex/fmod/src/fmod_file_disk.h

31 lines
600 B
C++
Executable file

#ifndef _FMOD_FILE_DISK_H
#define _FMOD_FILE_DISK_H
#include "fmod_settings.h"
#include "fmod_file.h"
namespace FMOD
{
class DiskFile : public File
{
DECLARE_MEMORYTRACKER
private:
void *mHandle;
public:
DiskFile() { mDeviceType = DEVICE_DISK; }
FMOD_RESULT reallyOpen(const char *name_or_data, unsigned int *filesize);
FMOD_RESULT reallyClose();
FMOD_RESULT reallyRead(void *buffer, unsigned int size, unsigned int *read);
FMOD_RESULT reallySeek(unsigned int pos);
FMOD_RESULT reallyCancel();
};
}
#endif