The base interface for all audio objects.
More...
#include "murl_audio_i_object.h"
The base interface for all audio objects.
◆ GetObjectInterface() [1/2]
virtual IObject* Murl::Audio::IObject::GetObjectInterface |
( |
| ) |
|
|
pure virtual |
◆ GetObjectInterface() [2/2]
virtual const IObject* Murl::Audio::IObject::GetObjectInterface |
( |
| ) |
const |
|
pure virtual |
◆ SetInitiallySuspended()
virtual Bool Murl::Audio::IObject::SetInitiallySuspended |
( |
Bool |
suspended | ) |
|
|
pure virtual |
Set the initial suspension state hint.
If the initial suspension state is set to true, the object does not create any internal resources until it is actually referenced during rendering, if it supports this feature.
- Parameters
-
suspended | The initial suspension state. |
- Returns
- true if successful.
◆ SetAutomaticallySuspendableEnabled()
virtual Bool Murl::Audio::IObject::SetAutomaticallySuspendableEnabled |
( |
Bool |
enabled | ) |
|
|
pure virtual |
Enable/disable automatic suspension, if supported.
When automatic suspension is enabled, the object destroys its internally held resources whenever it has not been used during rendering of the most recent frame. The next time it is used again, all necessary resources are restored. Care must be taken not to enable this feature for objects that get activated and deactivated frequently, otherwise a lot of overhead is generated for destroying and recreating its resources.
- Parameters
-
enabled | If true, automatic suspension is enabled. |
- Returns
- true if successful.
◆ SetManuallySuspendableEnabled()
virtual Bool Murl::Audio::IObject::SetManuallySuspendableEnabled |
( |
Bool |
enabled | ) |
|
|
pure virtual |
Enable/disable manual suspension, if supported.
When manual suspension is enabled, the object destroys its internally held resources whenever the object's owning renderer received a manual cleanup trigger via its BeginRendering() method.
- Parameters
-
enabled | If true, manual suspension is enabled. |
- Returns
- true if successful.
◆ SetEmergencySuspendableEnabled()
virtual Bool Murl::Audio::IObject::SetEmergencySuspendableEnabled |
( |
Bool |
enabled | ) |
|
|
pure virtual |
Enable/disable emergency suspension, if supported.
Emergency suspension works in the same way as manual suspension, and is triggered via en emergency cleanup trigger via BeginRendering().
- Parameters
-
enabled | If true, emergency suspension is enabled. |
- Returns
- true if successful.
◆ Init()
virtual Bool Murl::Audio::IObject::Init |
( |
| ) |
|
|
pure virtual |
Initialize this object.
Called by the IRenderer owning this object.
- Returns
- true if successful.
◆ DeInit()
virtual Bool Murl::Audio::IObject::DeInit |
( |
| ) |
|
|
pure virtual |
De-initialize this object.
Called by the IRenderer owning this object.
- Returns
- true if successful.
◆ Suspend()
virtual Bool Murl::Audio::IObject::Suspend |
( |
| ) |
|
|
pure virtual |
Suspend this object.
Called by the IRenderer owning this object.
- Returns
- true if successful.
◆ Resume()
virtual Bool Murl::Audio::IObject::Resume |
( |
| ) |
|
|
pure virtual |
Resume this object.
Called by the IRenderer owning this object.
- Returns
- true if successful.
◆ Evict()
virtual Bool Murl::Audio::IObject::Evict |
( |
| ) |
|
|
pure virtual |
Evict any additional resources held by the object, if possible.
In addition to resource suspension, this method also triggers an eviction of any extra system memory resources (if possible) to free up even more memory. Called by the IRenderer owning this object.
- Returns
- true if successful.
◆ Update()
virtual Bool Murl::Audio::IObject::Update |
( |
Real |
localTime | ) |
|
|
pure virtual |
Update the object.
Called by the IRenderer owning this object.
- Parameters
-
localTime | The time stamp used. |
- Returns
- true if successful.
◆ IsInitialized()
virtual Bool Murl::Audio::IObject::IsInitialized |
( |
| ) |
const |
|
pure virtual |
Check if this object is initialized.
- Returns
- true if initialized.
◆ IsSuspended()
virtual Bool Murl::Audio::IObject::IsSuspended |
( |
| ) |
const |
|
pure virtual |
Check if this object is suspended.
- Returns
- true if suspended.
◆ GetRecentFrameCount()
virtual UInt32 Murl::Audio::IObject::GetRecentFrameCount |
( |
| ) |
const |
|
pure virtual |
Get the global number of the frame the object was most recently used in.
- Returns
- The most recent frame number.
◆ GetAllocatedResourceByteSize()
Get the total number of allocated resource bytes.
- Parameters
-
memoryType | The type of memory to query. |
- Returns
- The number of allocated bytes.
The documentation for this interface was generated from the following file: