| Package | com.noteflight.standingwave2.filters |
| Class | public class ResamplingFilter |
| Inheritance | ResamplingFilter Object |
| Implements | IAudioSource, IRandomAccessSource |
| Property | Defined By | ||
|---|---|---|---|
| descriptor : AudioDescriptor [read-only]
Get the AudioDescriptor for this Sample. | ResamplingFilter | ||
| factor : Number
The factor by which the source's frequency is to be resampled. | ResamplingFilter | ||
| frameCount : Number [read-only]
Get the number of sample frames in this AudioSource. | ResamplingFilter | ||
| position : Number [read-only] | ResamplingFilter | ||
| source : IAudioSource
The underlying audio source for this filter. | ResamplingFilter | ||
| Method | Defined By | ||
|---|---|---|---|
ResamplingFilter(source:IAudioSource = null, factor:Number = 1)
Create a new ResamplingFilter to adjust the frequency of its input. | ResamplingFilter | ||
| ResamplingFilter | |||
| ResamplingFilter | |||
getSampleRange(fromOffset:Number, toOffset:Number):Sample
Get the concrete audio data from this source that occurs within a given time interval. | ResamplingFilter | ||
resetPosition():void | ResamplingFilter | ||
| descriptor | property |
descriptor:AudioDescriptor [read-only] Get the AudioDescriptor for this Sample.
public function get descriptor():AudioDescriptor| factor | property |
public var factor:NumberThe factor by which the source's frequency is to be resampled. Higher factors shift frequency upwards.
| frameCount | property |
frameCount:Number [read-only] Get the number of sample frames in this AudioSource.
public function get frameCount():Number| position | property |
position:Number [read-only] public function get position():Number| source | property |
source:IAudioSourceThe underlying audio source for this filter.
public function get source():IAudioSource public function set source(value:IAudioSource):void| ResamplingFilter | () | Constructor |
public function ResamplingFilter(source:IAudioSource = null, factor:Number = 1)Create a new ResamplingFilter to adjust the frequency of its input.
Parameterssource:IAudioSource (default = null) — the input source for this filter
| |
factor:Number (default = 1) — the factor by which the input frequency should be multiplied.
|
| clone | () | method |
| getSample | () | method |
| getSampleRange | () | method |
public function getSampleRange(fromOffset:Number, toOffset:Number):SampleGet the concrete audio data from this source that occurs within a given time interval. The interval must lie within the bounds of the length of the Sample.
Parameters
fromOffset:Number — the inclusive start of the interval, in sample frames.
| |
toOffset:Number — the exclusive end of the interval (that is, one past the last sample frame in the interval)
|
Sample — a Sample representing the data in the interval.
|
| resetPosition | () | method |
public function resetPosition():void