User Tools

Site Tools


wav

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wav [2015/09/25 17:09] (current)
glass created
Line 1: Line 1:
 +====== Wav ======
  
 +The WAV is an AIR required element that loads in a .WAV file and plays it, with the options to pause, stop, and resume play.
 +
 +{| style="​float:​right;​margin:​0 0 30px 20px;"
 +|+ A WAV file being played with a graphical waveform visualization applied.
 +|-
 +|{{:​oewav.jpg?​nolink&​400|WAV element screenshot}}
 +|}
 +
 +{| class="​wikitable"​
 +|-
 +! Characteristic !! Definition
 +|-
 +| Type || Display Object
 +|-
 +| Category || Element
 +|-
 +| Scope || Local
 +|-
 +| Position || *
 +|-
 +| Parents || Container
 +|-
 +| Children || none
 +|-
 +| Gestures || *
 +|-
 +| Requirements || none
 +|}
 +
 +
 +{| class="​wikitable"​
 +|-
 +! Attribute !! Type !! Description
 +|-
 +| autoplay || true/false || indicates whether the wav file plays upon load
 +|-
 +|backgroundAlpha || number || sets the background alpha
 +|-
 +|backgroundColor || number || sets the background color
 +|-
 +|bufferSize || number || audio buffer size
 +|-
 +|cueStart || number || cue start point in milliseconds
 +|-
 +|display || text || visualization display type, choose waveform or none
 +|-
 +|loop || true/false || specifies whether the wav file will loop to the beginning and continue playing upon completion
 +|-
 +|pan || number || sets the audio panning (-1=left, 0=center, 1=right)
 +|-
 +|preload || true/false || indicates whether the wav file is preloaded by the cml parser
 +|-
 +|printData || true/false || prints the data
 +|-
 +|src || text || sets the wav file path
 +|-
 +|volume || number || sets the volume
 +|-
 +|waveColor || number || sets the color of the wavform
 +|}
 +
 +See Also: [[Display Attributes]]
 +
 +<​code:​csharp linenums:​1>​
 +<​TouchContainer id="​tc1"​ x="​500"​ y="​250"​ mouseChildren="​false"​ disableNativeTransform="​false"​ disableAffineTransform="​false">​
 +    <WAV src="​library/​assets/​FDR-Infamy.wav"​ autoplay="​true"​ display="​waveform"​ width="​500"​ height="​500"​ volume="​0.5"​ scale="​.75"​ x="​0"​ y="​0"/>​
 +    <​GestureList>​
 +        <Gesture ref="​n-drag"​ gestureOn="​true"/>​
 +        <Gesture ref="​n-scale"​ gestureOn="​true"/>​
 +        <Gesture ref="​n-rotate"​ gestureOn="​true"/>​
 +    </​GestureList>​
 +</​TouchContainer>​
 +</​code>​
wav.txt · Last modified: 2015/09/25 17:09 by glass