instantreality 1.0

Component:
Sound
Status:
fully implemented
Structure type:
concrete
Standard:
X3D2.0

Sound

Sound contains an AudioClip or MovieTexture for sound playback. You can also substitute a type-matched ProtoInstance for content.

Inheritance

Code

XML encoding
<Sound enabled='TRUE'
direction='0 0 1'
intensity='1'
location='0 0 0'
maxBack='10'
maxFront='10'
minBack='1'
minFront='1'
priority='0'
spatialize='TRUE'
visualize='FALSE'
logFeature=''
 />
Classic encoding
Sound {
	enabled TRUE
	direction 0 0 1
	intensity 1
	location 0 0 0
	maxBack 10
	maxFront 10
	minBack 1
	minFront 1
	priority 0
	spatialize TRUE
	visualize FALSE
	logFeature [""]
}

Interface

Filter: X3D only | Avalon only | All
id Name DataType PartType Default ValueType Description
SFBool enabled SFBool inputOutput TRUE Enables or disables the Sound node. A Sound node that is disabled does not play sounds.
MFString logFeature MFString inputOutput state, child, parent, route, eventIn, eventOut controls the logging of changes, state: log state changes (e.g. live), child: log child add/remove, parent: log parent add/remove, route: log route add/remove; eventIn: log receiving of events, eventOut: log sending of events: guiView, runtime system should create node-view, guiEdit: runtime system should create node-editeverything: log everything
SFBool visualize SFBool inputOutput FALSE Set this field to TRUE get a visual feedback about the Sound node (its position and size) drawn on the screen. This is for debugging purposes.