Wasabi
Public Member Functions | Protected Attributes | Friends | List of all members
WOpenALSoundComponent Class Reference
Inheritance diagram for WOpenALSoundComponent:
WSoundComponent

Public Member Functions

 WOpenALSoundComponent (class Wasabi *const app)
 
virtual WError Initialize ()
 
virtual void Cleanup ()
 
virtual WSoundCreateSound (uint32_t ID=0) const
 
void * GetALSoundDevice () const
 
void * GetALSoundDeviceContext () const
 
virtual void SetSoundSpeed (float fSpeed)
 
virtual void SetDopplerFactor (float fFactor)
 
virtual void SetMasterGain (float fGain)
 
virtual void SetListenerPosition (float x, float y, float z)
 
virtual void SetListenerPosition (WVector3 pos)
 
virtual void SetListenerPosition (class WOrientation *pos)
 
virtual void SetListenerVelocity (float x, float y, float z)
 
virtual void SetListenerVelocity (WVector3 vel)
 
virtual void SetListenerOrientation (WVector3 look, WVector3 up)
 
virtual void SetListenerOrientation (class WOrientation *ori)
 
virtual void SetListenerToOrientation (class WOrientation *ori)
 
- Public Member Functions inherited from WSoundComponent
 WSoundComponent (class Wasabi *const app)
 

Protected Attributes

class Wasabim_app
 
- Protected Attributes inherited from WSoundComponent
class Wasabim_app
 

Friends

class WSound
 

Additional Inherited Members

- Public Attributes inherited from WSoundComponent
class WSoundManagerSoundManager
 

Member Function Documentation

◆ Cleanup()

virtual void WOpenALSoundComponent::Cleanup ( )
virtual

Frees all resources allocated by the sounds component.

Implements WSoundComponent.

◆ CreateSound()

virtual WSound* WOpenALSoundComponent::CreateSound ( uint32_t  ID = 0) const
virtual

Creates a new sound instance. This is equivalent to calling new WSound(app, ID), so care must be taken to free the resource when done with it.

Parameters
IDID for the created sound
Returns
A newly allocated sound instance

Implements WSoundComponent.

◆ Initialize()

virtual WError WOpenALSoundComponent::Initialize ( )
virtual

Initializes the sound component.

Returns
Error code, see WError.h

Implements WSoundComponent.


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