Package | com.noteflight.standingwave2.performance |
Class | public class AudioPerformer |
Inheritance | AudioPerformer ![]() |
Implements | IAudioSource |
Property | Defined By | ||
---|---|---|---|
descriptor : AudioDescriptor [read-only]
The AudioDescriptor describing the audio characteristics of this source. | AudioPerformer | ||
duration : Number
The total duration of this performance. | AudioPerformer | ||
frameCount : Number
Return the number of sample frames in this source. | AudioPerformer | ||
position : Number [read-only]
The position of the audio cursor in this source, as a frame index. | AudioPerformer |
Method | Defined By | ||
---|---|---|---|
AudioPerformer(performance:IPerformance)
Construct a new AudioPerformer for a performance. | AudioPerformer | ||
AudioPerformer | |||
Retrieve a number of sample frames from this source as a Sample object,
starting from the audio cursor position. | AudioPerformer | ||
resetPosition():void
Resets the audio cursor to the beginning of the source, and causes any
cursor-dependent state in the source to be initialized. | AudioPerformer |
descriptor | property |
descriptor:AudioDescriptor
[read-only] The AudioDescriptor describing the audio characteristics of this source.
public function get descriptor():AudioDescriptor
duration | property |
duration:Number
The total duration of this performance. The duration may be decreased from its default to truncate the performance, or increased in order to extend it with silence.
public function get duration():Number
public function set duration(value:Number):void
frameCount | property |
frameCount:Number
Return the number of sample frames in this source.
public function get frameCount():Number
public function set frameCount(value:Number):void
position | property |
position:Number
[read-only] The position of the audio cursor in this source, as a frame index.
public function get position():Number
AudioPerformer | () | Constructor |
public function AudioPerformer(performance:IPerformance)
Construct a new AudioPerformer for a performance.
Parametersperformance:IPerformance — the IPerformance implementation to be performed when this
AudioPerformer is rendered as an IAudioSource.
|
clone | () | method |
getSample | () | method |
public function getSample(numFrames:Number):Sample
Retrieve a number of sample frames from this source as a Sample object,
starting from the audio cursor position. It is not legal to request frames
beyond the maximum index indicated by the frameCount
property.
Parameters
numFrames:Number — an integral number of frames.
|
Sample — a Sample object containing the requested sample frames.
|
resetPosition | () | method |
public function resetPosition():void
Resets the audio cursor to the beginning of the source, and causes any cursor-dependent state in the source to be initialized.