Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
Ult::OpenALSystem Class Reference

#include <OpenALSystem.h>

Public Member Functions

 OpenALSystem ()
 
 ~OpenALSystem ()
 
void SetListenerPosition (const float x, const float y, const float z)
 
void SetListenerVelocity (const float x, const float y, const float z)
 
void SetListenerOrientation (const float dx, const float dy, const float dz, const float ux, const float uy, const float uz)
 
void PlaySound (const OpenALSoundSource &source)
 
void PauseSound (const OpenALSoundSource &source)
 
void StopSound (const OpenALSoundSource &source)
 
bool IsInitialized () const
 
void Cleanup ()
 

Detailed Description

Manages the OpenAL library.

Constructor & Destructor Documentation

◆ OpenALSystem()

Ult::OpenALSystem::OpenALSystem ( )

OpenALSystem constructor.

◆ ~OpenALSystem()

Ult::OpenALSystem::~OpenALSystem ( )

OpenALSystem destructor.

Member Function Documentation

◆ Cleanup()

void Ult::OpenALSystem::Cleanup ( )

Quit/shutdown the OpenAL library.

◆ IsInitialized()

bool Ult::OpenALSystem::IsInitialized ( ) const
inline

Returns whether the system has been initialized.

◆ PauseSound()

void Ult::OpenALSystem::PauseSound ( const OpenALSoundSource & source)

Pause the input sound.

◆ PlaySound()

void Ult::OpenALSystem::PlaySound ( const OpenALSoundSource & source)

Start playing the input sound

◆ SetListenerOrientation()

void Ult::OpenALSystem::SetListenerOrientation ( const float dx,
const float dy,
const float dz,
const float ux,
const float uy,
const float uz )

Set the lookat/direction and up vector of the listener.

◆ SetListenerPosition()

void Ult::OpenALSystem::SetListenerPosition ( const float x,
const float y,
const float z )

Sets the position of where the player is listening from.

◆ SetListenerVelocity()

void Ult::OpenALSystem::SetListenerVelocity ( const float x,
const float y,
const float z )

Set the velocity of the player listener.

◆ StopSound()

void Ult::OpenALSystem::StopSound ( const OpenALSoundSource & source)

Stop the input sound.


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