Packagecom.noteflight.standingwave3.sources
Classpublic class LoopSource
InheritanceLoopSource Inheritance AbstractSource Inheritance Object

Creates an audio source of indefinite duration by looping another IDirectAccessSource.



Public Properties
 PropertyDefined By
 Inheritedamplitude : Number
AbstractSource
 Inheriteddescriptor : AudioDescriptor
[read-only] Get the AudioDescriptor for this Sample.
AbstractSource
  duration : Number
[override] [read-only]
LoopSource
  endFrame : Number = 0
LoopSource
  firstFrame : Number = 0
Initial start point for when the source first starts
LoopSource
  frameCount : Number
[override] [read-only] In a LoopSource, the frame count needs to be tweaked appropriately to reflect the frequency shift.
LoopSource
  frequencyShift : Number
Factor by which to shift the playback frequency up or down
LoopSource
 Inheritedposition : Number
[read-only]
AbstractSource
  startFrame : Number = 0
The frame to begin and end looping on.
LoopSource
Protected Properties
 PropertyDefined By
 Inherited_descriptor : AudioDescriptor
Audio descriptor for this source.
AbstractSource
 Inherited_duration : Number
AbstractSource
 Inherited_position : Number
AbstractSource
Public Methods
 MethodDefined By
  
LoopSource extends a sample indefinitely by looping a section.
LoopSource
  
[override]
LoopSource
  
getSample(numFrames:Number):Sample
[override]
LoopSource
  
[override]
LoopSource
Protected Methods
 MethodDefined By
 Inherited
generateChannel(data:Vector.<Number>, channel:Number, numFrames:Number):void
AbstractSource
Public Constants
 ConstantDefined By
 InheritedMAX_DURATION : Number = 2.147483647E9
[static]
AbstractSource
Property Detail
durationproperty
duration:Number  [read-only] [override]


Implementation
    public function get duration():Number
endFrameproperty 
public var endFrame:Number = 0

firstFrameproperty 
public var firstFrame:Number = 0

Initial start point for when the source first starts

frameCountproperty 
frameCount:Number  [read-only] [override]

In a LoopSource, the frame count needs to be tweaked appropriately to reflect the frequency shift.


Implementation
    public function get frameCount():Number
frequencyShiftproperty 
public var frequencyShift:Number

Factor by which to shift the playback frequency up or down

startFrameproperty 
public var startFrame:Number = 0

The frame to begin and end looping on. Standing Wave can otread loop points from samples. You must provide them. Of course, loop points should almost ALWAYS be at zero-crossings!

Constructor Detail
LoopSource()Constructor
public function LoopSource(ad:AudioDescriptor, soundGenerator:IDirectAccessSource)

LoopSource extends a sample indefinitely by looping a section. The source of a loop is always a SoundGenerator.

Parameters
ad:AudioDescriptor
 
soundGenerator:IDirectAccessSource
Method Detail
clone()method
override public function clone():IAudioSource

Returns
IAudioSource
getSample()method 
override public function getSample(numFrames:Number):Sample

Parameters

numFrames:Number

Returns
Sample
resetPosition()method 
override public function resetPosition():void