Sound¶
name: Sound
documentation:
Provides functionality for audio playback
complexContent
extension
base: imml:SourcableMovableElement
choice: The following element types can be used in conjunction with this element
maxOccurs: unbounded
Allow multiple of these elements
element
type: imml:Repeater
name: Repeater
maxOccurs: unbounded
minOccurs: 0
element
type: imml:Stack
name: Stack
maxOccurs: unbounded
minOccurs: 0
element
type: imml:Grid
name: Grid
maxOccurs: unbounded
minOccurs: 0
element
type: imml:Model
name: Model
maxOccurs: unbounded
minOccurs: 0
element
type: imml:Text
name: Text
maxOccurs: unbounded
minOccurs: 0
element
type: imml:Effect
name: Effect
maxOccurs: unbounded
minOccurs: 0
element
type: imml:Primitive
name: Primitive
maxOccurs: unbounded
minOccurs: 0
element
type: imml:Sound
name: Sound
maxOccurs: unbounded
minOccurs: 0
element
type: imml:Light
name: Light
maxOccurs: unbounded
minOccurs: 0
element
type: imml:Camera
name: Camera
maxOccurs: unbounded
minOccurs: 0
element
type: imml:Widget
name: Widget
maxOccurs: unbounded
minOccurs: 0
element
type: imml:Trigger
name: Trigger
maxOccurs: unbounded
minOccurs: 0
element
name: Define
maxOccurs: unbounded
minOccurs: 0
type: imml:Parameter
documentation:
A key/value pair defining a variable attached to this node
Only one of these
element
type: imml:Network
name: Network
maxOccurs: 1
minOccurs: 0
attribute
name: Enabled
type: imml:Boolean
default: True
use: optional
documentation:
When a sound is enabled, it will begin playback
attribute
name: Spatial
type: imml:Boolean
default: True
use: optional
documentation:
When true, the sound is positional according to the rotation and position specified
attribute
name: Volume
type: xs:float
default: 0.5
use: optional
documentation:
A value between 0 and 1 that describes the amount of volume to use, where 1 is the full amount of available volume
attribute
name: Stream
type: imml:Boolean
default: False
use: optional
documentation:
When true, the sound is streamed from the source on playback.
attribute
name: Pitch
type: xs:float
default: 1
use: optional
documentation:
The amount to multiply the frequency of the sound by
attribute
name: Loop
type: imml:Boolean
default: False
use: optional
documentation:
When true, the sound should loop on playback