raze-gles/polymer/jfaud/inc/soundfile.hpp
terminx 7b0104e9a1 JFAud
git-svn-id: https://svn.eduke32.com/eduke32@452 1a8010ca-5511-0410-912e-c29ae57300e0
2007-01-12 22:42:19 +00:00

26 lines
641 B
C++
Executable file

#ifndef __soundfile_hpp__
#define __soundfile_hpp__
#include "file.hpp"
class SoundFile {
public:
typedef enum { TYPE_WAVEFORM, TYPE_MIDI } Type;
typedef enum { InitOK, InitDisabled, InitFailed } InitState;
SoundFile() { }
virtual ~SoundFile() { }
virtual bool IsValid() const = 0;
virtual bool IsUsable() const { return IsValid(); }
// Sub-classes should implement these
//static InitState Init() { return InitDisabled; }
//static bool Uninit() { return false; }
virtual Type GetType() const = 0;
virtual const char *GetTypeName() const = 0;
};
SoundFile *IdentifySoundFile(JFAudFile *);
#endif