The IAudible property interface. More...
#include "murl_graph_i_audible.h"
Public Member Functions | |
virtual Bool | SetSampleFormat (IEnums::SampleFormat sampleFormat)=0 |
Set the sample format used for playback. More... | |
virtual IEnums::SampleFormat | GetSampleFormat () const =0 |
Get the sample format used for playback. More... | |
virtual Bool | SetMaxNumberOfStreamBuffers (UInt32 maxNumBuffers)=0 |
Set the maximum number of stream buffers used during playback. More... | |
virtual UInt32 | GetMaxNumberOfStreamBuffers () const =0 |
Get the maximum number of stream buffers used during playback. More... | |
virtual Bool | SetVolume (Real volume)=0 |
Set the playback volume. More... | |
virtual Real | GetVolume () const =0 |
Get the playback volume. More... | |
virtual Bool | SetReferenceDistance (Real referenceDistance)=0 |
Set the reference distance. More... | |
virtual Real | GetReferenceDistance () const =0 |
Get the reference distance. More... | |
virtual Bool | SetRolloffFactor (Real rolloffFactor)=0 |
Set the rolloff factor. More... | |
virtual Real | GetRolloffFactor () const =0 |
Get the rolloff factor. More... | |
virtual Bool | SetMaxDistance (Real maxDistance)=0 |
Set the maximum distance. More... | |
virtual Real | GetMaxDistance () const =0 |
Get the maximum distance. More... | |
Detailed Description
The IAudible property interface.
This interface provides setting and retrieving common properties of an audible object (i.e. a sound), including volume, reference and maximum distance, and rolloff factor. For a detailed description of the distance model, see the IListener interface.
Animation controllers may call the SetVolume() method when volume keys are present in a given Resource::IAnimation.
Member Function Documentation
◆ SetSampleFormat()
|
pure virtual |
Set the sample format used for playback.
This method sets the internal sample format used for playback. Usually, the native sample format of a given sound object is used by default, but can be overridden by any other value.
- Parameters
-
sampleFormat The internal sample format to use.
- Returns
- true if successful.
◆ GetSampleFormat()
|
pure virtual |
Get the sample format used for playback.
- Returns
- The sample format.
◆ SetMaxNumberOfStreamBuffers()
|
pure virtual |
Set the maximum number of stream buffers used during playback.
- Parameters
-
maxNumBuffers The maximum number of stream buffers.
- Returns
- true if successful.
◆ GetMaxNumberOfStreamBuffers()
|
pure virtual |
Get the maximum number of stream buffers used during playback.
- Returns
- The maximum number of stream buffers.
◆ SetVolume()
Set the playback volume.
- Parameters
-
volume The playback volume in the range from 0.0 (silent) to 1.0 (full volume).
- Returns
- true if successful.
Referenced by Murl::Logic::GraphSoundObject::SetVolume().
◆ GetVolume()
|
pure virtual |
Get the playback volume.
- Returns
- The playback volume in the range from 0.0 (silent) to 1.0 (full volume).
◆ SetReferenceDistance()
Set the reference distance.
- Parameters
-
referenceDistance The reference distance. See the IListener interface for details.
- Returns
- true if successful.
◆ GetReferenceDistance()
|
pure virtual |
Get the reference distance.
- Returns
- The reference distance.
◆ SetRolloffFactor()
Set the rolloff factor.
- Parameters
-
rolloffFactor The rolloff factor. See the IListener interface for details.
- Returns
- true if successful.
◆ GetRolloffFactor()
|
pure virtual |
Get the rolloff factor.
- Returns
- The rolloff factor.
◆ SetMaxDistance()
Set the maximum distance.
- Parameters
-
maxDistance The maximum distance. See the IListener interface for details.
- Returns
- true if successful.
◆ GetMaxDistance()
|
pure virtual |
Get the maximum distance.
- Returns
- The maximum distance.
The documentation for this interface was generated from the following file:
- murl_graph_i_audible.h