Pyrogenesis  trunk
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CSoundBase Class Reference

#include <CSoundBase.h>

Inheritance diagram for CSoundBase:
Inheritance graph
[legend]
Collaboration diagram for CSoundBase:
Collaboration graph
[legend]

Public Member Functions

 CSoundBase ()
 
virtual ~CSoundBase ()
 
bool InitOpenAL ()
 
void ResetVars ()
 
void EnsurePlay ()
 
void SetGain (ALfloat gain)
 
void SetRollOff (ALfloat gain)
 
void SetPitch (ALfloat pitch)
 
void SetDirection (const CVector3D &direction)
 
void SetCone (ALfloat innerCone, ALfloat outerCone, ALfloat coneGain)
 
void SetLastPlay (bool last)
 
void ReleaseOpenAL ()
 
bool IsFading ()
 
bool Finished ()
 
void Play ()
 
void PlayAndDelete ()
 
void PlayLoop ()
 
void Stop ()
 
void StopAndDelete ()
 
void FadeToIn (ALfloat newVolume, double fadeDuration)
 
bool GetLooping ()
 
bool IsPlaying ()
 
void SetLocation (const CVector3D &position)
 
void FadeAndDelete (double fadeTime)
 
void FadeAndPause (double fadeTime)
 
void Pause ()
 
void Resume ()
 
const Path GetName ()
 
virtual void SetLooping (bool loops)
 
virtual bool IdleTask ()
 
virtual void Attach (CSoundData *itemData)
 
- Public Member Functions inherited from ISoundItem
virtual ~ISoundItem ()
 
virtual void FadeToIn (float newVolume, double fadeDuration)=0
 
virtual void SetCone (float innerCone, float outerCone, float coneGain)=0
 
virtual void SetPitch (float pitch)=0
 
virtual void SetGain (float gain)=0
 
virtual void SetRollOff (float gain)=0
 

Protected Member Functions

void SetNameFromPath (VfsPath &itemPath)
 
void ResetFade ()
 
bool HandleFade ()
 

Protected Attributes

ALuint m_ALSource
 
CSoundDatam_SoundData
 
bool m_LastPlay
 
bool m_Looping
 
bool m_ShouldBePlaying
 
bool m_PauseAfterFade
 
bool m_IsPaused
 
double m_StartFadeTime
 
double m_EndFadeTime
 
ALfloat m_StartVolume
 
ALfloat m_EndVolume
 
CMutex m_ItemMutex
 

Constructor & Destructor Documentation

CSoundBase::CSoundBase ( )
CSoundBase::~CSoundBase ( )
virtual

Member Function Documentation

void CSoundBase::Attach ( CSoundData itemData)
virtual

Implements ISoundItem.

Reimplemented in CBufferItem, CStreamItem, and CSoundItem.

void CSoundBase::EnsurePlay ( )
virtual

Implements ISoundItem.

void CSoundBase::FadeAndDelete ( double  fadeTime)
virtual

Implements ISoundItem.

void CSoundBase::FadeAndPause ( double  fadeTime)
virtual

Implements ISoundItem.

void CSoundBase::FadeToIn ( ALfloat  newVolume,
double  fadeDuration 
)
bool CSoundBase::Finished ( )
virtual

Implements ISoundItem.

bool CSoundBase::GetLooping ( )
virtual

Implements ISoundItem.

const Path CSoundBase::GetName ( )
virtual

Implements ISoundItem.

bool CSoundBase::HandleFade ( )
protected
bool CSoundBase::IdleTask ( )
virtual

Implements ISoundItem.

Reimplemented in CSoundItem, CStreamItem, and CBufferItem.

bool CSoundBase::InitOpenAL ( )
bool CSoundBase::IsFading ( )
virtual

Implements ISoundItem.

bool CSoundBase::IsPlaying ( )
virtual

Implements ISoundItem.

void CSoundBase::Pause ( )
virtual

Implements ISoundItem.

void CSoundBase::Play ( )
virtual

Implements ISoundItem.

void CSoundBase::PlayAndDelete ( )
virtual

Implements ISoundItem.

void CSoundBase::PlayLoop ( )
virtual

Implements ISoundItem.

void CSoundBase::ReleaseOpenAL ( )
void CSoundBase::ResetFade ( )
protected
void CSoundBase::ResetVars ( )
void CSoundBase::Resume ( )
virtual

Implements ISoundItem.

void CSoundBase::SetCone ( ALfloat  innerCone,
ALfloat  outerCone,
ALfloat  coneGain 
)
void CSoundBase::SetDirection ( const CVector3D direction)
void CSoundBase::SetGain ( ALfloat  gain)
void CSoundBase::SetLastPlay ( bool  last)
void CSoundBase::SetLocation ( const CVector3D position)
virtual

Implements ISoundItem.

void CSoundBase::SetLooping ( bool  loops)
virtual

Implements ISoundItem.

Reimplemented in CStreamItem, and CBufferItem.

void CSoundBase::SetNameFromPath ( VfsPath itemPath)
protected
void CSoundBase::SetPitch ( ALfloat  pitch)
void CSoundBase::SetRollOff ( ALfloat  gain)
void CSoundBase::Stop ( )
virtual

Implements ISoundItem.

void CSoundBase::StopAndDelete ( )
virtual

Implements ISoundItem.

Member Data Documentation

ALuint CSoundBase::m_ALSource
protected
double CSoundBase::m_EndFadeTime
protected
ALfloat CSoundBase::m_EndVolume
protected
bool CSoundBase::m_IsPaused
protected
CMutex CSoundBase::m_ItemMutex
protected
bool CSoundBase::m_LastPlay
protected
bool CSoundBase::m_Looping
protected
bool CSoundBase::m_PauseAfterFade
protected
bool CSoundBase::m_ShouldBePlaying
protected
CSoundData* CSoundBase::m_SoundData
protected
double CSoundBase::m_StartFadeTime
protected
ALfloat CSoundBase::m_StartVolume
protected

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