Class: AudioClip

X3D: 3.3
Component: Sound
Status:
experimental

x3dom.nodeTypes. AudioClip

An AudioClip node specifies audio data that can be referenced by Sound nodes.

HTML Encoding and Default Values

<AudioClip enabled='true' loop='false' metadata='X3DMetadataObject' url='[]' ></AudioClip>

Inheritance


Constructor

AudioClip(ctx)

Constructor for AudioClip

Parameters:
Name Type Argument Default Description
ctx Object <optional>
null context object, containing initial settings like namespace

Fields

These are the X3D / X3DOM fields of this node. Values should usually be received / set as strings via DOM functions (i.e., using setAttribute("myFieldName", "myFieldValue") and getAttribute("myFieldName")).
Name Type Default Value Range Inheritance Standard Description
enabled SFBool true Specifies whether the clip is enabled.
loop SFBool false Specifies whether the clip loops when finished.
metadata SFNode X3DMetadataObject X3DSoundSourceNode Field to add metadata information
url MFString [] The url field specifies the URL from which the sound is loaded.