AudioFormat_MOD.h
Go to the documentation of this file.00001 00011 #ifndef __AudioFormat_MOD_H__ 00012 #define __AudioFormat_MOD_H__ 00013 00014 // Includes 00015 #include "AudioFormat.h" 00016 00017 // Forward declares 00018 struct _ModPlugFile; 00019 00020 // AudioFormat_MOD 00021 class AudioFormat_MOD:public AudioFormat 00022 { 00023 public: 00024 static void Register(); 00025 static bool TestAsset(const Asset& asset); 00026 static AudioFormat* Create(const Asset& asset); 00027 00031 AudioFormat_MOD( 00032 const Asset& asset 00033 ); 00034 00038 virtual ~AudioFormat_MOD(); 00039 00044 virtual int GetChannels(); 00045 00050 virtual int GetFrequency(); 00051 00055 virtual int GetBitsPerSample(); 00056 00062 virtual int GetSize(); 00063 00069 virtual int GetPosition(); 00070 00075 virtual void SetPosition( 00076 int position 00077 ); 00078 00084 virtual int CopySoundChunk( 00085 void* buffer, 00086 int bytes 00087 ); 00088 00089 private: 00090 _ModPlugFile* modFile_; 00091 int position_; 00092 }; 00093 00094 #endif /* __AudioFormat_MOD_H__ */
Reproduction/republishing of any material on this site without permission is strictly prohibited.
