![]() |
AireEngine
A 3D Open-World Game Engine
|
The AudioEngine class manages the audio system. More...
#include <audioEngine.h>
Public Member Functions | |
| AudioEngine () | |
| Constructs an AudioEngine object. | |
| ~AudioEngine () | |
| Destroys the AudioEngine object. | |
| AudioSource * | createAudioSource (const std::string &soundFile, float x, float y, float z) |
| Creates an AudioSource object with the specified sound file and position. | |
| AudioSource * | createAudioSource (const std::string &soundFile, const glm::vec3 &pos) |
| Creates an AudioSource object with the specified sound file and position. | |
| AudioListener * | getUniqueListener () const |
| Gets the unique instance of the AudioListener. | |
The AudioEngine class manages the audio system.
| AudioSource * Aire::AudioEngine::createAudioSource | ( | const std::string & | soundFile, |
| const glm::vec3 & | pos ) |
Creates an AudioSource object with the specified sound file and position.
| soundFile | The path to the sound file. |
| pos | The position vector. |
| AudioSource * Aire::AudioEngine::createAudioSource | ( | const std::string & | soundFile, |
| float | x, | ||
| float | y, | ||
| float | z ) |
Creates an AudioSource object with the specified sound file and position.
| soundFile | The path to the sound file. |
| x | The x-coordinate of the position. |
| y | The y-coordinate of the position. |
| z | The z-coordinate of the position. |

| AudioListener * Aire::AudioEngine::getUniqueListener | ( | ) | const |
Gets the unique instance of the AudioListener.