Package | com.noteflight.standingwave3.sources |
Class | public class LoopSource |
Inheritance | LoopSource ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
![]() | amplitude : Number | AbstractSource | |
![]() | descriptor : 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 | ||
![]() | position : Number [read-only] | AbstractSource | |
startFrame : Number = 0 The frame to begin and end looping on. | LoopSource |
Method | Defined By | ||
---|---|---|---|
LoopSource extends a sample indefinitely by looping a section. | LoopSource | ||
[override] | LoopSource | ||
[override] | LoopSource | ||
resetPosition():void [override] | LoopSource |
duration | property |
duration:Number
[read-only] [override] public function get duration():Number
endFrame | property |
public var endFrame:Number = 0
firstFrame | property |
public var firstFrame:Number = 0
Initial start point for when the source first starts
frameCount | property |
frameCount:Number
[read-only] [override] In a LoopSource, the frame count needs to be tweaked appropriately to reflect the frequency shift.
public function get frameCount():Number
frequencyShift | property |
public var frequencyShift:Number
Factor by which to shift the playback frequency up or down
startFrame | property |
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!
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.
Parametersad:AudioDescriptor | |
soundGenerator:IDirectAccessSource |
clone | () | method |
getSample | () | method |
override public function getSample(numFrames:Number):Sample
Parameters
numFrames:Number |
Sample |
resetPosition | () | method |
override public function resetPosition():void