/* AudioDevice.h Written by Matthew Fisher AudioDevice plays wave files. */ #ifdef USE_DIRECTX_AUDIO #include #endif class AudioDevice { public: AudioDevice(); ~AudioDevice(); void FreeMemory(); void Init(); void ResetAllSounds(); void PlayWaveFile(WaveFile &File, bool LoopForever = false); private: void RemoveVoices(bool CompleteOnly); #ifdef USE_DIRECTX_AUDIO IXAudio2* _Device; IXAudio2MasteringVoice* _MasteringVoice; Vector _ActiveSourceVoices; #endif };