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.
               
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.
               
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:element name="children" type="MFNode" fixed="inputOutputField" default="Analyser|AudioClip|AudioDestination|BiquadFilter|BufferAudioSource|ChannelMerger|ChannelSelector|ChannelSplitter|Convolver|Delay|DynamicsCompressor|Gain|ListenerPointSource|MicrophoneSource|MovieTexture|OscillatorSource|Sound|SpatialSound|StreamAudioDestination|StreamAudioSource|WaveShaper"/>
<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:element name="children" type="MFNode" fixed="inputOutputField" default="Analyser|AudioClip|AudioDestination|BiquadFilter|BufferAudioSource|ChannelMerger|ChannelSelector|ChannelSplitter|Convolver|Delay|DynamicsCompressor|Gain|ListenerPointSource|MicrophoneSource|MovieTexture|OscillatorSource|Sound|SpatialSound|StreamAudioDestination|StreamAudioSource|WaveShaper"/>
     
<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/X3Dv4Draft/ISO-IEC19775-1v4-WD3/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
enumeration clamped-max
enumeration explicit
source <xs:attribute name="channelCountMode" type="channelCountModeChoices" default="max"/>

attribute BufferAudioSource/@channelInterpretation
type channelInterpretationChoices
properties
default speakers
facets
Kind Value Annotation
enumeration speakers
enumeration discrete
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
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
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
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
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
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