AudioEmitter Class Reference#include <audioEmitter.h>
Inheritance diagram for AudioEmitter:
[legend]
|
Public Types |
enum | UpdateMasks {
InitialUpdateMask = BIT(0),
TransformUpdateMask = BIT(1),
DirtyUpdateMask = BIT(2)
} |
Public Member Functions |
| AudioEmitter (bool client=false) |
void | processLoopEvent () |
bool | update () |
void | packData (NetConnection *conn, U32 mask, BitStream *stream) |
void | unpackData (NetConnection *conn, BitStream *stream) |
void | setTransform (const MatrixF &mat) |
| Sets the Object -> World transform.
|
void | setScale (const VectorF &scale) |
| Sets the scale for the object.
|
void | inspectPreApply () |
| Called before any property of the object is changed in the world editor.
|
void | inspectPostApply () |
| Called after any property of the object is changed in the world editor.
|
bool | prepRenderImage (SceneState *state, const U32 stateKey, const U32 startZone, const bool modifyBaseZoneState) |
| Called when the SceneGraph is ready for the registration of RenderImages.
|
void | renderObject (SceneState *state, SceneRenderImage *image) |
| Called when the object is supposed to render itself.
|
void | render3DVisualFeedBack (void) |
U32 | packUpdate (NetConnection *conn, U32 mask, BitStream *stream) |
| Instructs this object to pack its state for transfer over the network.
|
void | unpackUpdate (NetConnection *conn, BitStream *stream) |
| Instructs this object to read state data previously packed with packUpdate.
|
bool | onAdd () |
| Called when the object is added to the sim.
|
void | onRemove () |
| Called when the object is removed from the sim.
|
| DECLARE_CONOBJECT (AudioEmitter) |
Static Public Member Functions |
static void | initPersistFields () |
| Register dynamic fields in a subclass of ConsoleObject.
|
Private Types |
enum | Dirty {
Profile = BIT(0),
Description = BIT(1),
Filename = BIT(2),
UseProfileDescription = BIT(3),
Volume = BIT(4),
IsLooping = BIT(5),
Is3D = BIT(6),
ReferenceDistance = BIT(7),
MaxDistance = BIT(8),
ConeInsideAngle = BIT(9),
ConeOutsideAngle = BIT(10),
ConeOutsideVolume = BIT(11),
ConeVector = BIT(12),
LoopCount = BIT(13),
MinLoopGap = BIT(14),
MaxLoopGap = BIT(15),
Transform = BIT(16),
AudioType = BIT(17),
OutsideAmbient = BIT(18),
AllDirtyMask = BIT(19) - 1,
SourceMask = (Profile|Description|Filename),
LoopingMask = (LoopCount|MinLoopGap|MaxLoopGap),
Is3DMask = (ReferenceDistance|MaxDistance|ConeInsideAngle|ConeOutsideAngle|ConeOutsideVolume|ConeVector),
UseProfileDescriptionMask = (Volume|LoopingMask|Is3DMask|IsLooping|Is3D|AudioType)
} |
typedef SceneObject | Parent |
Private Member Functions |
bool | readDirtyFlag (BitStream *, U32) |
Private Attributes |
AUDIOHANDLE | mAudioHandle |
U32 | mAudioProfileId |
U32 | mAudioDescriptionId |
AudioProfile * | mAudioProfile |
AudioDescription * | mAudioDescription |
StringTableEntry | mFilename |
bool | mUseProfileDescription |
Audio::Description | mDescription |
bool | mOutsideAmbient |
S32 | mLoopCount |
U32 | mEventID |
bool | mEnableVisualFeedback |
bool | mOwnedByClient |
F32 | mAnimRotAngle |
BitSet32 | mDirty |
Static Private Attributes |
static Audio::Description | smDefaultDescription |
Friends |
class | AmbientAudioManager |
class | AudioEmitterToEvent |
Member Typedef Documentation
Member Enumeration Documentation
- Enumerator:
-
Profile |
|
Description |
|
Filename |
|
UseProfileDescription |
|
Volume |
|
IsLooping |
|
Is3D |
|
ReferenceDistance |
|
MaxDistance |
|
ConeInsideAngle |
|
ConeOutsideAngle |
|
ConeOutsideVolume |
|
ConeVector |
|
LoopCount |
|
MinLoopGap |
|
MaxLoopGap |
|
Transform |
|
AudioType |
|
OutsideAmbient |
|
AllDirtyMask |
|
SourceMask |
|
LoopingMask |
|
Is3DMask |
|
UseProfileDescriptionMask |
|
- Enumerator:
-
InitialUpdateMask |
|
TransformUpdateMask |
|
DirtyUpdateMask |
|
Constructor & Destructor Documentation
AudioEmitter::AudioEmitter |
( |
bool |
client = false |
) |
|
Member Function Documentation
bool AudioEmitter::readDirtyFlag |
( |
BitStream * |
, |
|
|
U32 |
| |
|
) |
| | [private] |
void AudioEmitter::processLoopEvent |
( |
|
) |
|
bool AudioEmitter::update |
( |
|
) |
|
void AudioEmitter::setTransform |
( |
const MatrixF & |
mat |
) |
[virtual] |
Sets the Object -> World transform.
- Parameters:
-
Reimplemented from SceneObject.
void AudioEmitter::setScale |
( |
const VectorF & |
scale |
) |
[virtual] |
Sets the scale for the object.
- Parameters:
-
Reimplemented from SceneObject.
void AudioEmitter::inspectPreApply |
( |
|
) |
[virtual] |
Called before any property of the object is changed in the world editor.
The calling order here is:
Reimplemented from SimObject.
void AudioEmitter::inspectPostApply |
( |
|
) |
[virtual] |
bool AudioEmitter::prepRenderImage |
( |
SceneState * |
state, |
|
|
const U32 |
stateKey, |
|
|
const U32 |
startZone, |
|
|
const bool |
modifyBaseZoneState | |
|
) |
| | [virtual] |
Called when the SceneGraph is ready for the registration of RenderImages.
- See also:
- SceneState
- Parameters:
-
| state | SceneState |
| stateKey | State key of the current SceneState |
| startZone | Base zone index |
| modifyBaseZoneState | If true, the object needs to modify the zone state. |
Reimplemented from SceneObject.
Called when the object is supposed to render itself.
- Parameters:
-
| state | Current rendering state. |
- See also:
- SceneState
- Parameters:
-
| image | Image associated with this object to render. |
- See also:
- SceneRenderImage
Reimplemented from SceneObject.
void AudioEmitter::render3DVisualFeedBack |
( |
void |
|
) |
|
Instructs this object to pack its state for transfer over the network.
- Parameters:
-
| conn | Net connection being used |
| mask | Mask indicating fields to transmit. |
| stream | Bitstream to pack data to |
- Returns:
- Any bits which were not dealt with. The value is stored by the networking system. Don't set bits you weren't passed.
Reimplemented from NetObject.
Instructs this object to read state data previously packed with packUpdate.
- Parameters:
-
| conn | Net connection being used |
| stream | stream to read from |
Reimplemented from NetObject.
bool AudioEmitter::onAdd |
( |
|
) |
[virtual] |
Called when the object is added to the sim.
Reimplemented from SceneObject.
void AudioEmitter::onRemove |
( |
|
) |
[virtual] |
Called when the object is removed from the sim.
Reimplemented from SceneObject.
static void AudioEmitter::initPersistFields |
( |
|
) |
[static] |
Friends And Related Function Documentation
friend class AudioEmitterToEvent [friend] |
Field Documentation
|