SyndicatQuebecoisdelaConstr.../SQCSim2021/audio.h
Marc-Eric Martel c3c432c369 GUI
2021-10-26 17:28:37 -04:00

30 lines
617 B
C++

#ifndef AUDIO_H__
#define AUDIO_H__
#include <irrKlang.h>
#include <ik_ISoundSource.h>
#include "define.h"
#include "vector3.h"
class Audio {
private:
irrklang::ISoundEngine* m_engine;
irrklang::ISound* m_music;
public:
Audio();
Audio(const char* music);
~Audio();
void Update3DAudio(Vector3f pos, Vector3f dir, Vector3f speed);
void Create3DAudioObj(irrklang::ISound* sound, const char* name, Vector3f& pos, Vector3f& vel, float volume);
void Render3DAudioObj(irrklang::ISound* sound, Vector3f& pos, Vector3f& vel, float volume);
void ToggleMusicState();
void PauseEngine();
};
#endif // AUDIO_H__