complexType X3DSoundSourceNode
diagram x3d-4.0_diagrams/x3d-4.0_p386.png
type extension of X3DTimeDependentNode
properties
base X3DTimeDependentNode
abstract true
children IS MetadataBoolean MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString
used by
elements AudioClip BufferAudioSource ListenerPointSource MicrophoneSource MovieTexture OscillatorSource StreamAudioSource
attributes
Name  Type  Use  Default  Fixed  Annotation
DEF  xs:ID        
appinfo

                    DEF defines a unique ID name for each node, referenceable by other nodes.
               
USE  xs:IDREF        
appinfo

                    USE means reuse an already DEF-ed node ID, excluding all child nodes and all other attributes (except for containerField, which can have a different value).
               
class  xs:NMTOKENS        
appinfo

                    The class attribute is a space-separated list of classes, reserved for use by Cascading Style Sheets (CSS) and XML stylesheets.
                    This attribute is only functional if the X3D model is loaded within an HTML page.
               
id  xs:NMTOKEN        
appinfo

                    The id attribute is a unique identifier, reserved for use by HTML5/DOM pages, independent of DEF labeling and internal X3D node referencing.
                    This attribute is only functional if the X3D model is loaded within an HTML page.
               
style  SFString        
appinfo

                    The style attribute provides an inline block of CSS for element styling, reserved for use by Cascading Style Sheets (CSS) and XML stylesheets.
                    This attribute is only functional if the X3D model is loaded within an HTML page.
               
description  SFString        
pauseTime  SFTime    0    
appinfo
<xs:attribute name="componentName" type="componentNameChoices" fixed="Time"/>
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="2"/>
resumeTime  SFTime    0    
appinfo
<xs:attribute name="componentName" type="componentNameChoices" fixed="Time"/>
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="2"/>
startTime  SFTime    0    
stopTime  SFTime    0    
enabled  SFBool    true    
gain  SFFloat    1    
annotation
appinfo
<!-- X3D version 4: duration_changed moved from abstract type X3DSoundSourceNode to AudioClip, MovieTexture -->
<xs:attribute name="additionalInterface" type="xs:string" default="X3DSoundNode"/>
<xs:attribute name="componentName" type="componentNameChoices" fixed="Sound"/>
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="1"/>
                Nodes implementing X3DSoundSourceNode are allowed as children of Sound node.
           
source <xs:complexType name="X3DSoundSourceNode" abstract="true">
 
<xs:annotation>
   
<xs:appinfo>
     
<!-- X3D version 4: duration_changed moved from abstract type X3DSoundSourceNode to AudioClip, MovieTexture -->
     
<xs:attribute name="additionalInterface" type="xs:string" default="X3DSoundNode"/>
     
<xs:attribute name="componentName" type="componentNameChoices" fixed="Sound"/>
     
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="1"/>
                Nodes implementing X3DSoundSourceNode are allowed as children of Sound node.
           
</xs:appinfo>
   
<xs:documentation source="https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/components/sound.html#X3DSoundSourceNode"/>
 
</xs:annotation>
 
<xs:complexContent>
   
<xs:extension base="X3DTimeDependentNode">
     
<xs:annotation>
       
<xs:appinfo>define appropriate containerField in each implementing node (since AudioClip and MovieTexture are different)</xs:appinfo>
     
</xs:annotation>
     
<xs:attribute name="enabled" type="SFBool" default="true"/>
     
<xs:attribute name="gain" type="SFFloat" default="1"/>
   
</xs:extension>
   
<!-- X3D version 4: pitch moved from abstract type X3DTimeDependentNode to AudioClip, MovieTexture -->
   
<!--<xs:attribute name="containerField" type="containerFieldChoicesSoundSource" default="children"/>-->
 
</xs:complexContent>
</xs:complexType>

attribute X3DSoundSourceNode/@enabled
type SFBool
properties
default true
source <xs:attribute name="enabled" type="SFBool" default="true"/>

attribute X3DSoundSourceNode/@gain
type SFFloat
properties
default 1
source <xs:attribute name="gain" type="SFFloat" default="1"/>


XML Schema documentation generated by XMLSpy Schema Editor http://www.altova.com/xmlspy