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

#include <OpenALSoundSource.h>

Public Member Functions

 OpenALSoundSource ()
 
 ~OpenALSoundSource ()
 
bool BindSourceBuffer (const OpenALSoundBuffer &buff)
 
void SetSoundPosition (const float x, const float y, const float z)
 
void SetSoundVelocity (const float x, const float y, const float z)
 
void SetLooping (const bool enable)
 
void Cleanup ()
 
unsigned int GetSource () const
 

Detailed Description

Represents a emitter of sound with a position in 3d space.

Constructor & Destructor Documentation

◆ OpenALSoundSource()

Ult::OpenALSoundSource::OpenALSoundSource ( )

OpenALSoundSource constructor.

◆ ~OpenALSoundSource()

Ult::OpenALSoundSource::~OpenALSoundSource ( )

OpenALSoundSource destructor.

Member Function Documentation

◆ BindSourceBuffer()

bool Ult::OpenALSoundSource::BindSourceBuffer ( const OpenALSoundBuffer & buff)

Set the sound that this source should emit.

◆ Cleanup()

void Ult::OpenALSoundSource::Cleanup ( )

Free the sound source.

◆ GetSource()

unsigned int Ult::OpenALSoundSource::GetSource ( ) const
inline

Returns to the OpenAL handle to the sound source.

◆ SetLooping()

void Ult::OpenALSoundSource::SetLooping ( const bool enable)

Set whether the sound should loop or not.

◆ SetSoundPosition()

void Ult::OpenALSoundSource::SetSoundPosition ( const float x,
const float y,
const float z )

Set the position of the emitter in 3d space.

◆ SetSoundVelocity()

void Ult::OpenALSoundSource::SetSoundVelocity ( const float x,
const float y,
const float z )

Set the velocity of the sound.


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