If the profile is set then the emitter plays that. If the profile is null and the filename is set then the local emitter options are used.
|
Public Member Functions |
| SFXEmitter () |
virtual | ~SFXEmitter () |
| DECLARE_CONOBJECT (SFXEmitter) |
bool | onAdd () |
| Called when the object is added to the sim.
|
void | onRemove () |
| Called when the object is removed from the sim.
|
void | onStaticModified (const char *slotName, const char *newValue=NULL) |
| Called when a static field is modified.
|
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.
|
void | setTransform (const MatrixF &mat) |
| Sets the Object -> World transform.
|
void | setScale (const VectorF &scale) |
| Sets the scale for the object.
|
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) |
void | play () |
| Sends network event to start playback if the emitter source is not already playing.
|
void | stop () |
| Sends network event to stop emitter playback on all ghosted clients.
|
Static Public Member Functions |
static void | initPersistFields () |
| Register dynamic fields in a subclass of ConsoleObject.
|
Protected Types |
| InitialUpdateMask = BIT(0) |
| TransformUpdateMask = BIT(1) |
| DirtyUpdateMask = BIT(2) |
| SourcePlayMask = BIT(3) |
| SourceStopMask = BIT(4) |
| AllSourceMasks = SourcePlayMask | SourceStopMask |
| Profile = BIT(0) |
| Filename = BIT(2) |
| Volume = BIT(4) |
| IsLooping = BIT(5) |
| Is3D = BIT(6) |
| ReferenceDistance = BIT(7) |
| MaxDistance = BIT(8) |
| ConeInsideAngle = BIT(9) |
| ConeOutsideAngle = BIT(10) |
| ConeOutsideVolume = BIT(11) |
| Transform = BIT(12) |
| Channel = BIT(13) |
| OutsideAmbient = BIT(14) |
| AllDirtyMask = 0xFFFFFFFF |
enum | UpdateMasks {
InitialUpdateMask = BIT(0),
TransformUpdateMask = BIT(1),
DirtyUpdateMask = BIT(2),
SourcePlayMask = BIT(3),
SourceStopMask = BIT(4),
AllSourceMasks = SourcePlayMask | SourceStopMask
} |
| Network update masks. More...
|
enum | Dirty {
Profile = BIT(0),
Filename = BIT(2),
Volume = BIT(4),
IsLooping = BIT(5),
Is3D = BIT(6),
ReferenceDistance = BIT(7),
MaxDistance = BIT(8),
ConeInsideAngle = BIT(9),
ConeOutsideAngle = BIT(10),
ConeOutsideVolume = BIT(11),
Transform = BIT(12),
Channel = BIT(13),
OutsideAmbient = BIT(14),
AllDirtyMask = 0xFFFFFFFF
} |
| Dirty flags used to handle sound property updates locally and across the network. More...
|
Protected Member Functions |
bool | _readDirtyFlag (BitStream *stream, U32 flag) |
| Helper which reads a flag from the stream and updates the mDirty bits.
|
void | _update () |
| Called when the emitter state has been marked dirty and the source needs to be updated.
|
Protected Attributes |
SFXSource * | mSource |
| The sound source for the emitter.
|
SFXProfile * | mProfile |
| The selected profile or null if the local profile should be used.
|
SFXProfile | mLocalProfile |
| A local profile object used to coax the sound system to play a custom sound.
|
SFXDescription | mDescription |
| The description used by the local profile.
|
bool | mPlayOnAdd |
| If true playback starts when the emitter is added to the scene.
|
BitSet32 | mDirty |
| The current dirty flags.
|
Private Types |
typedef SceneObject | Parent |