#ifndef AUDIO_H__ #define AUDIO_H__ #ifdef _WIN32 #include #include #else #include "./external/irrKlang-64bit-1.6.0/include/irrKlang.h" #include "./external/irrKlang-64bit-1.6.0/include/ik_ISoundSource.h" #endif #include "../SQCSim-common/vector3.h" #include "define.h" class Audio { private: irrklang::ISound* m_music; public: Audio(); Audio(const char* music); ~Audio(); irrklang::ISoundEngine* m_engine; void Update3DAudio(Vector3f pos, Vector3f dir, Vector3f speed); irrklang::ISound* Create3DAudioObj(irrklang::ISound* sound, const char* name, Vector3f pos, Vector3f vel, bool is_looped, float volume); void Render3DAudioObj(irrklang::ISound* sound, Vector3f& pos, Vector3f& vel, float volume); //void PlaySong(const char* music); void ToggleMusicState(); void PauseEngine(); float GetMusicVolume() const; }; #endif // AUDIO_H__