AireEngine
A 3D Open-World Game Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Aire::AudioEngine Class Reference

The AudioEngine class manages the audio system. More...

#include <audioEngine.h>

Public Member Functions

 AudioEngine ()
 Constructs an AudioEngine object.
 
 ~AudioEngine ()
 Destroys the AudioEngine object.
 
AudioSourcecreateAudioSource (const std::string &soundFile, float x, float y, float z)
 Creates an AudioSource object with the specified sound file and position.
 
AudioSourcecreateAudioSource (const std::string &soundFile, const glm::vec3 &pos)
 Creates an AudioSource object with the specified sound file and position.
 
AudioListenergetUniqueListener () const
 Gets the unique instance of the AudioListener.
 

Detailed Description

The AudioEngine class manages the audio system.

Member Function Documentation

◆ createAudioSource() [1/2]

AudioSource * Aire::AudioEngine::createAudioSource ( const std::string & soundFile,
const glm::vec3 & pos )

Creates an AudioSource object with the specified sound file and position.

Parameters
soundFileThe path to the sound file.
posThe position vector.
Returns
Pointer to the created AudioSource object.

◆ createAudioSource() [2/2]

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.

Parameters
soundFileThe path to the sound file.
xThe x-coordinate of the position.
yThe y-coordinate of the position.
zThe z-coordinate of the position.
Returns
Pointer to the created AudioSource object.
Here is the caller graph for this function:

◆ getUniqueListener()

AudioListener * Aire::AudioEngine::getUniqueListener ( ) const

Gets the unique instance of the AudioListener.

Returns
Pointer to the unique AudioListener object.

The documentation for this class was generated from the following files: