ScummVM API documentation
hpl::cLowLevelSoundOpenAL Class Reference
Inheritance diagram for hpl::cLowLevelSoundOpenAL:
hpl::iLowLevelSound

Public Member Functions

void GetSupportedFormats (tStringList &alstFormats)
 
iSoundData * LoadSoundData (const tString &asName, const tString &asFilePath, const tString &asType, bool abStream, bool abLoopStream)
 
void UpdateSound (float afTimeStep)
 
void SetListenerAttributes (const cVector3f &avPos, const cVector3f &avVel, const cVector3f &avForward, const cVector3f &avUp)
 
void SetListenerPosition (const cVector3f &avPos)
 
void SetSetRolloffFactor (float afFactor)
 
void SetListenerAttenuation (bool abEnabled)
 
void Init (bool abUseHardware, bool abForceGeneric, bool abUseEnvAudio, int alMaxChannels, int alStreamUpdateFreq, bool abUseThreading, bool abUseVoiceManagement, int alMaxMonoSourceHint, int alMaxStereoSourceHint, int alStreamingBufferSize, int alStreamingBufferCount, bool abEnableLowLevelLog, tString asDeviceName)
 
void SetVolume (float afVolume)
 
void SetEnvVolume (float afEnvVolume)
 
iSoundEnvironment * LoadSoundEnvironment (const tString &asFilePath)
 
void SetSoundEnvironment (iSoundEnvironment *apSoundEnv)
 
void FadeSoundEnvironment (iSoundEnvironment *apSourceSoundEnv, iSoundEnvironment *apDestSoundEnv, float afT)
 
bool playChannel (cOpenALSoundChannel *channel)
 
void closeChannel (cOpenALSoundChannel *channel)
 
- Public Member Functions inherited from hpl::iLowLevelSound
virtual void GetSupportedFormats (tStringList &alstFormats)=0
 
virtual iSoundData * LoadSoundData (const tString &asName, const tString &asFilePath, const tString &asType, bool abStream, bool abLoopStream)=0
 
virtual void UpdateSound (float afTimeStep)=0
 
virtual void SetListenerAttributes (const cVector3f &avPos, const cVector3f &avVel, const cVector3f &avForward, const cVector3f &avUp)=0
 
virtual void SetListenerPosition (const cVector3f &avPos)=0
 
const cMatrixf & GetListenerMatrix ()
 
virtual void SetListenerAttenuation (bool abEnabled)=0
 
virtual void SetSetRolloffFactor (float afFactor)=0
 
virtual void SetVolume (float afVolume)=0
 
cVector3f & GetListenerPosition ()
 
cVector3f & GetListenerVelocity ()
 
cVector3f & GetListenerForward ()
 
cVector3f & GetListenerUp ()
 
bool GetListenerAttenuation ()
 
float GetVolume ()
 
virtual void Init (bool abUseHardware, bool abForceGeneric, bool abUseEnvAudio, int alMaxChannels, int alStreamUpdateFreq, bool abUseThreading, bool abUseVoiceManagement, int alMaxMonoSourceHint, int alMaxStereoSourceHint, int alStreamingBufferSize, int alStreamingBufferCount, bool abEnableLowLevelLog, tString asDeviceName)=0
 
bool IsHardwareAccelerated ()
 
bool IsEnvAudioAvailable ()
 
virtual void SetEnvVolume (float afVolume)=0
 
float GetEnvVolume ()
 
virtual iSoundEnvironment * LoadSoundEnvironment (const tString &asFilePath)=0
 
virtual void SetSoundEnvironment (iSoundEnvironment *apSoundEnv)=0
 
virtual void FadeSoundEnvironment (iSoundEnvironment *apSourceSoundEnv, iSoundEnvironment *apDestSoundEnv, float afT)=0
 
iSoundEnvironment * GetSoundEnvironmentFromFileName (const tString &asName)
 

Additional Inherited Members

- Protected Attributes inherited from hpl::iLowLevelSound
float mfVolume
 
float mfEnvVolume
 
bool mbListenerAttenuation
 
bool mbHardwareAcc
 
bool mbEnvAudioEnabled
 
cVector3f mvListenerUp
 
cVector3f mvListenerForward
 
cVector3f mvListenerRight
 
cVector3f mvListenerPosition
 
cVector3f mvListenerVelocity
 
cMatrixf m_mtxListener
 
tSoundEnvList mlstSoundEnv
 

Member Function Documentation

◆ GetSupportedFormats()

void hpl::cLowLevelSoundOpenAL::GetSupportedFormats ( tStringList &  alstFormats)
virtual

Get the formats supported

Parameters
&alstFormats

Implements hpl::iLowLevelSound.

◆ LoadSoundData()

iSoundData * hpl::cLowLevelSoundOpenAL::LoadSoundData ( const tString &  asName,
const tString &  asFilePath,
const tString &  asType,
bool  abStream,
bool  abLoopStream 
)
virtual

Implements hpl::iLowLevelSound.

◆ UpdateSound()

void hpl::cLowLevelSoundOpenAL::UpdateSound ( float  afTimeStep)
virtual

Implements hpl::iLowLevelSound.

◆ SetListenerAttributes()

void hpl::cLowLevelSoundOpenAL::SetListenerAttributes ( const cVector3f &  avPos,
const cVector3f &  avVel,
const cVector3f &  avForward,
const cVector3f &  avUp 
)
virtual

Implements hpl::iLowLevelSound.

◆ SetListenerPosition()

void hpl::cLowLevelSoundOpenAL::SetListenerPosition ( const cVector3f &  avPos)
virtual

Implements hpl::iLowLevelSound.

◆ SetSetRolloffFactor()

void hpl::cLowLevelSoundOpenAL::SetSetRolloffFactor ( float  afFactor)
virtual

Implements hpl::iLowLevelSound.

◆ SetListenerAttenuation()

void hpl::cLowLevelSoundOpenAL::SetListenerAttenuation ( bool  abEnabled)
virtual

Implements hpl::iLowLevelSound.

◆ Init()

void hpl::cLowLevelSoundOpenAL::Init ( bool  abUseHardware,
bool  abForceGeneric,
bool  abUseEnvAudio,
int  alMaxChannels,
int  alStreamUpdateFreq,
bool  abUseThreading,
bool  abUseVoiceManagement,
int  alMaxMonoSourceHint,
int  alMaxStereoSourceHint,
int  alStreamingBufferSize,
int  alStreamingBufferCount,
bool  abEnableLowLevelLog,
tString  asDeviceName 
)
virtual

Implements hpl::iLowLevelSound.

◆ SetVolume()

void hpl::cLowLevelSoundOpenAL::SetVolume ( float  afVolume)
virtual

Implements hpl::iLowLevelSound.

◆ SetEnvVolume()

void hpl::cLowLevelSoundOpenAL::SetEnvVolume ( float  afEnvVolume)
virtual

Implements hpl::iLowLevelSound.

◆ LoadSoundEnvironment()

iSoundEnvironment * hpl::cLowLevelSoundOpenAL::LoadSoundEnvironment ( const tString &  asFilePath)
virtual

Implements hpl::iLowLevelSound.

◆ SetSoundEnvironment()

void hpl::cLowLevelSoundOpenAL::SetSoundEnvironment ( iSoundEnvironment *  apSoundEnv)
virtual

Implements hpl::iLowLevelSound.

◆ FadeSoundEnvironment()

void hpl::cLowLevelSoundOpenAL::FadeSoundEnvironment ( iSoundEnvironment *  apSourceSoundEnv,
iSoundEnvironment *  apDestSoundEnv,
float  afT 
)
virtual

Implements hpl::iLowLevelSound.


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