Package | com.noteflight.standingwave2.filters |
Class | public class GainFilter |
Inheritance | GainFilter ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
![]() | descriptor : AudioDescriptor [read-only]
The AudioDescriptor describing the audio characteristics of this source. | AbstractFilter | |
![]() | frameCount : Number [read-only]
The number of sample frames in this source. | AbstractFilter | |
gain : Number The gain factor applied. | GainFilter | ||
![]() | position : Number [read-only]
The position of the audio cursor in this source, as a frame index. | AbstractFilter | |
![]() | source : IAudioSource
The underlying audio source for this filter. | AbstractFilter |
Method | Defined By | ||
---|---|---|---|
GainFilter(source:IAudioSource, gain:Number)
Create a new GainFilter. | GainFilter | ||
[override] | GainFilter | ||
![]() |
Retrieve a number of sample frames from this source as a Sample object,
starting from the audio cursor position. | AbstractFilter | |
![]() | resetPosition():void
Resets the audio cursor to the beginning of the source, and causes any
cursor-dependent state in the source to be initialized. | AbstractFilter |
Method | Defined By | ||
---|---|---|---|
transformChannel(data:Vector.<Number>, channel:Number, start:Number, numFrames:Number):void [override] | GainFilter |
gain | property |
public var gain:Number
The gain factor applied.
GainFilter | () | Constructor |
public function GainFilter(source:IAudioSource, gain:Number)
Create a new GainFilter.
Parameterssource:IAudioSource — the underlying audio source
| |
gain:Number — the gain factor
|
clone | () | method |
transformChannel | () | method |
override protected function transformChannel(data:Vector.<Number>, channel:Number, start:Number, numFrames:Number):void
Parameters
data:Vector.<Number> | |
channel:Number | |
start:Number | |
numFrames:Number |