DOMAudioEvent

From Virtual World Web Wiki
Jump to: navigation, search

Represents a named event that can be fired out of animations. An DOMAudioFont defines named events and connects sound clips to those events through DOMAudioBinding

Remarks [edit]

Properties

string AttachToBone {get; set;}
Sound clips bound to this event (through DOMAudioBinding nodes) will play as if they're coming from the exact 3D location of this named bone (assuming their ThreeD property is set to true.

Constructors

DOMAudioEvent()
Constructs a new DOMAudioEvent with default settings
DOMAudioEvent(DOMObject[] children)
Constructs a new DOMAudioEvent, adding children at the same time
DOMAudioEvent(string title, DOMObject[] children)
Constructs a new DOMAudioEvent, setting a title and adding children at the same time

Methods

bool CheckChild(DOMObject child)
Called on DOMObject derived types just before a child is added to their Children collection to ensure they are acceptable
bool CheckParent(DOMObject parent)
Called on DOMObject derived types just before they are added to the DOM to ensure their parent is appropriate.