|
|
| WOpenALSoundComponent (class Wasabi *const app) |
| |
| virtual WError | Initialize () |
| |
| virtual void | Cleanup () |
| |
| virtual WSound * | CreateSound (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) |
| |
|
| WSoundComponent (class Wasabi *const app) |
| |
◆ 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
-
| ID | ID 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: