| 1 |
X3DSoundNode : X3DChildNode { |
| 2 |
default-container-field: children |
| 3 |
|
| 4 |
SFString [in,out] description "" |
| 5 |
SFBool [in,out] enabled TRUE |
| 6 |
} |
| 7 |
|
| 8 |
X3DSoundSourceNode : X3DTimeDependentNode { |
| 9 |
default-container-field: children |
| 10 |
|
| 11 |
SFString [in,out] description "" |
| 12 |
change: chNone |
| 13 |
SFBool [in,out] enabled TRUE |
| 14 |
SFFloat [in,out] gain 1 |
| 15 |
range: (-Inf,Inf) |
| 16 |
SFFloat [in,out] pitch 1.0 |
| 17 |
range: (0,Inf) |
| 18 |
SFTime [out] duration_changed |
| 19 |
} |
| 20 |
|
| 21 |
AudioClip : X3DSoundSourceNode, X3DUrlObject { |
| 22 |
# Although X3D XML encoding spec says that "children" is default |
| 23 |
# containerField, common sense says it should be "source". |
| 24 |
# Sound.source field is where AudioClip should be placed, always. |
| 25 |
# Testcase: FISH.x3d |
| 26 |
default-container-field: source |
| 27 |
|
| 28 |
SFTime [in,out] autoRefresh 0.0 |
| 29 |
range: [0,Inf) |
| 30 |
SFTime [in,out] autoRefreshTimeLimit 3600.0 |
| 31 |
range: [0,Inf) |
| 32 |
SFBool [in,out] load TRUE |
| 33 |
|
| 34 |
MFString [in,out] url [] |
| 35 |
range: [urn] |
| 36 |
} |
| 37 |
|
| 38 |
Sound : X3DSoundNode { |
| 39 |
# TODO: X3D 4: |
| 40 |
# MFNode [in,out] children NULL [X3DSoundChannelNode,X3DSoundProcessingNode,X3DSoundSourceNode] |
| 41 |
# https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-IS.proof/Part01/components/sound.html#Sound |
| 42 |
|
| 43 |
SFVec3f [in,out] direction 0 0 1 |
| 44 |
range: (-Inf,Inf) |
| 45 |
SFFloat [in,out] intensity 1 |
| 46 |
range: [0,1] |
| 47 |
SFVec3f [in,out] location 0 0 0 |
| 48 |
range: (-Inf,Inf) |
| 49 |
SFFloat [in,out] maxBack 10 |
| 50 |
range: [0,Inf) |
| 51 |
SFFloat [in,out] maxFront 10 |
| 52 |
range: [0,Inf) |
| 53 |
SFFloat [in,out] minBack 1 |
| 54 |
range: [0,Inf) |
| 55 |
SFFloat [in,out] minFront 1 |
| 56 |
range: [0,Inf) |
| 57 |
SFFloat [in,out] priority 0 |
| 58 |
range: [0,1] |
| 59 |
SFNode [in,out] source NULL |
| 60 |
# Note that we have to allow MovieTexture explicitly, |
| 61 |
# even though in X3D standard the MovieTexture is descendant of X3DSoundSourceNode |
| 62 |
# already. But in CGE, X3DSoundSourceNode is a class (not interface), |
| 63 |
# as that's simpler, and MovieTexture is not a descendant of X3DSoundSourceNode |
| 64 |
# (it has to descend from X3DTexture2DNode). |
| 65 |
range: X3DSoundSourceNode, MovieTexture |
| 66 |
SFBool [] spatialize TRUE |
| 67 |
} |