element BufferAudioSource
diagram x3d-4.0_diagrams/x3d-4.0_p21.png
type extension of X3DSoundSourceNode
properties
content complex
children IS MetadataBoolean MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString
used by
groups AudioGraphContentModel ChildContentModelFull
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    
buffer  MFFloat        
bufferDuration  derived by: SFTime    0    
appinfo

                                Renamed field since W3C Web Audio name 'duration' is a name collision with X3DSoundSourceNode/X3DTimeDependentNode
                           
channelCountMode  channelCountModeChoices    MAX    
channelInterpretation  channelInterpretationChoices    SPEAKERS    
detune  derived by: SFFloat    0    
load  SFBool    true    
loop  SFBool    false    
loopEnd  derived by: SFFloat    0    
loopStart  derived by: SFFloat    0    
numberOfChannels  derived by: SFInt32    0    
playbackRate  SFFloat    1    
autoRefresh  derived by: SFTime    0    
autoRefreshTimeLimit  derived by: SFTime    3600    
sampleRate  derived by: SFFloat    0    
url  MFString        
appinfo
<xs:attribute name="componentName" type="componentNameChoices" fixed="Networking"/>
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="4"/>
containerField  containerFieldChoicesSoundSource    children    
annotation
appinfo
<xs:attribute name="additionalInterface" type="xs:string" default="X3DUrlObject"/>
<xs:attribute name="buffer" fixed="inputOutputField">
<xs:simpleType>
<xs:restriction base="MFFloat">
<xs:minInclusive value="-1"/>
<xs:maxInclusive value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="bufferlength" type="SFInt32" fixed="outputOnlyField"/>
<xs:attribute name="channelCount" type="SFInt32" fixed="outputOnlyField"/>
<xs:attribute name="length" fixed="outputOnlyField">
<xs:simpleType>
<xs:restriction base="SFInt32">
<xs:minInclusive value="0"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="componentName" type="componentNameChoices" fixed="Sound"/>
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="2"/>
source <xs:element name="BufferAudioSource">
 
<xs:annotation>
   
<xs:appinfo>
     
<xs:attribute name="additionalInterface" type="xs:string" default="X3DUrlObject"/>
     
<xs:attribute name="buffer" fixed="inputOutputField">
       
<xs:simpleType>
         
<xs:restriction base="MFFloat">
           
<xs:minInclusive value="-1"/>
           
<xs:maxInclusive value="1"/>
         
</xs:restriction>
       
</xs:simpleType>
     
</xs:attribute>
     
<xs:attribute name="bufferlength" type="SFInt32" fixed="outputOnlyField"/>
     
<xs:attribute name="channelCount" type="SFInt32" fixed="outputOnlyField"/>
     
<xs:attribute name="length" fixed="outputOnlyField">
       
<xs:simpleType>
         
<xs:restriction base="SFInt32">
           
<xs:minInclusive value="0"/>
         
</xs:restriction>
       
</xs:simpleType>
     
</xs:attribute>
     
<xs:attribute name="componentName" type="componentNameChoices" fixed="Sound"/>
     
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="2"/>
   
</xs:appinfo>
   
<xs:documentation source="https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/sound.html#BufferAudioSource"/>
 
</xs:annotation>
 
<xs:complexType>
   
<xs:complexContent>
     
<xs:extension base="X3DSoundSourceNode">
       
<xs:attribute name="buffer" type="MFFloat">
         
<!-- TODO consider regex for non-negative array -->
       
</xs:attribute>
       
<xs:attribute name="bufferDuration" default="0">
         
<xs:annotation>
           
<xs:appinfo>
                                Renamed field since W3C Web Audio name 'duration' is a name collision with X3DSoundSourceNode/X3DTimeDependentNode
                           
</xs:appinfo>
         
</xs:annotation>
         
<xs:simpleType>
           
<xs:restriction base="SFTime">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="channelCountMode" type="channelCountModeChoices" default="MAX"/>
       
<xs:attribute name="channelInterpretation" type="channelInterpretationChoices" default="SPEAKERS"/>
       
<xs:attribute name="detune" default="0">
         
<xs:simpleType>
           
<xs:restriction base="SFFloat">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="load" type="SFBool" default="true"/>
       
<xs:attribute name="loop" type="SFBool" default="false"/>
       
<xs:attribute name="loopEnd" default="0">
         
<xs:simpleType>
           
<xs:restriction base="SFFloat">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="loopStart" default="0">
         
<xs:simpleType>
           
<xs:restriction base="SFFloat">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="numberOfChannels" default="0">
         
<xs:simpleType>
           
<xs:restriction base="SFInt32">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="playbackRate" type="SFFloat" default="1"/>
       
<xs:attribute name="autoRefresh" default="0">
         
<!-- type="SFTimeNonNegative" -->
         
<xs:simpleType>
           
<xs:restriction base="SFTime">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="autoRefreshTimeLimit" default="3600">
         
<!-- type="SFTimeNonNegative" -->
         
<xs:simpleType>
           
<xs:restriction base="SFTime">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="sampleRate" default="0">
         
<xs:simpleType>
           
<xs:restriction base="SFFloat">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="url" type="MFString">
         
<xs:annotation>
           
<xs:appinfo>
             
<xs:attribute name="componentName" type="componentNameChoices" fixed="Networking"/>
             
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="4"/>
           
</xs:appinfo>
         
</xs:annotation>
       
</xs:attribute>
       
<xs:attribute name="containerField" type="containerFieldChoicesSoundSource" default="children"/>
     
</xs:extension>
   
</xs:complexContent>
 
</xs:complexType>
</xs:element>

attribute BufferAudioSource/@buffer
type MFFloat
facets
Kind Value Annotation
whiteSpace collapse
pattern \s*(([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s*,?\s*)*
source <xs:attribute name="buffer" type="MFFloat">
 
<!-- TODO consider regex for non-negative array -->
</xs:attribute>

attribute BufferAudioSource/@bufferDuration
type restriction of SFTime
properties
default 0
facets
Kind Value Annotation
minInclusive 0
annotation
appinfo

                                Renamed field since W3C Web Audio name 'duration' is a name collision with X3DSoundSourceNode/X3DTimeDependentNode
                           
source <xs:attribute name="bufferDuration" default="0">
 
<xs:annotation>
   
<xs:appinfo>
                                Renamed field since W3C Web Audio name 'duration' is a name collision with X3DSoundSourceNode/X3DTimeDependentNode
                           
</xs:appinfo>
 
</xs:annotation>
 
<xs:simpleType>
   
<xs:restriction base="SFTime">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute BufferAudioSource/@channelCountMode
type channelCountModeChoices
properties
default MAX
facets
Kind Value Annotation
enumeration MAX
appinfo
<xs:attribute name="alias" type="xs:string" default="max"/>
                        X3D version of "max" in Web Audio API.
                   
enumeration CLAMPED_MAX
appinfo
<xs:attribute name="alias" type="xs:string" default="clamped-max"/>
                        X3D version of "clamped-max" in Web Audio API.
                   
enumeration EXPLICIT
appinfo
<xs:attribute name="alias" type="xs:string" default="explicit"/>
                        X3D version of "explicit" in Web Audio API.
                   
source <xs:attribute name="channelCountMode" type="channelCountModeChoices" default="MAX"/>

attribute BufferAudioSource/@channelInterpretation
type channelInterpretationChoices
properties
default SPEAKERS
facets
Kind Value Annotation
enumeration SPEAKERS
appinfo

                        X3D version of "speakers" in Web Audio API.
                   
enumeration DISCRETE
appinfo

                        X3D version of "discrete" in Web Audio API.
                   
source <xs:attribute name="channelInterpretation" type="channelInterpretationChoices" default="SPEAKERS"/>

attribute BufferAudioSource/@detune
type restriction of SFFloat
properties
default 0
facets
Kind Value Annotation
minInclusive 0
pattern \s*([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s*
source <xs:attribute name="detune" default="0">
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

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

attribute BufferAudioSource/@loop
type SFBool
properties
default false
source <xs:attribute name="loop" type="SFBool" default="false"/>

attribute BufferAudioSource/@loopEnd
type restriction of SFFloat
properties
default 0
facets
Kind Value Annotation
minInclusive 0
pattern \s*([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s*
source <xs:attribute name="loopEnd" default="0">
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute BufferAudioSource/@loopStart
type restriction of SFFloat
properties
default 0
facets
Kind Value Annotation
minInclusive 0
pattern \s*([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s*
source <xs:attribute name="loopStart" default="0">
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute BufferAudioSource/@numberOfChannels
type restriction of SFInt32
properties
default 0
facets
Kind Value Annotation
minInclusive 0
source <xs:attribute name="numberOfChannels" default="0">
 
<xs:simpleType>
   
<xs:restriction base="SFInt32">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute BufferAudioSource/@playbackRate
type SFFloat
properties
default 1
facets
Kind Value Annotation
pattern \s*([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s*
source <xs:attribute name="playbackRate" type="SFFloat" default="1"/>

attribute BufferAudioSource/@autoRefresh
type restriction of SFTime
properties
default 0
facets
Kind Value Annotation
minInclusive 0
source <xs:attribute name="autoRefresh" default="0">
 
<!-- type="SFTimeNonNegative" -->
 
<xs:simpleType>
   
<xs:restriction base="SFTime">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute BufferAudioSource/@autoRefreshTimeLimit
type restriction of SFTime
properties
default 3600
facets
Kind Value Annotation
minInclusive 0
source <xs:attribute name="autoRefreshTimeLimit" default="3600">
 
<!-- type="SFTimeNonNegative" -->
 
<xs:simpleType>
   
<xs:restriction base="SFTime">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute BufferAudioSource/@sampleRate
type restriction of SFFloat
properties
default 0
facets
Kind Value Annotation
minInclusive 0
pattern \s*([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s*
source <xs:attribute name="sampleRate" default="0">
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute BufferAudioSource/@url
type MFString
annotation
appinfo
<xs:attribute name="componentName" type="componentNameChoices" fixed="Networking"/>
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="4"/>
source <xs:attribute name="url" type="MFString">
 
<xs:annotation>
   
<xs:appinfo>
     
<xs:attribute name="componentName" type="componentNameChoices" fixed="Networking"/>
     
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="4"/>
   
</xs:appinfo>
 
</xs:annotation>
</xs:attribute>

attribute BufferAudioSource/@containerField
type containerFieldChoicesSoundSource
properties
default children
facets
Kind Value Annotation
enumeration children
appinfo
parent node is X3DSoundChannelNode, X3DSoundDestinationNode, or X3DSoundProcessingNode
enumeration source
appinfo
parent node is Sound node (legacy X3D3 SFNode source is allowed content model, prefer X3D4 MFNode children)
source <xs:attribute name="containerField" type="containerFieldChoicesSoundSource" default="children"/>


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