mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-16 17:31:27 +00:00
7b0104e9a1
git-svn-id: https://svn.eduke32.com/eduke32@452 1a8010ca-5511-0410-912e-c29ae57300e0
26 lines
641 B
C++
Executable file
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
|