Packagecom.noteflight.standingwave2.filters
Classpublic class GainFilter
InheritanceGainFilter Inheritance AbstractFilter Inheritance Object

GainFilter applies a fixed gain factor to the underlying source.



Public Properties
 PropertyDefined By
 Inheriteddescriptor : AudioDescriptor
[read-only] The AudioDescriptor describing the audio characteristics of this source.
AbstractFilter
 InheritedframeCount : Number
[read-only] The number of sample frames in this source.
AbstractFilter
  gain : Number
The gain factor applied.
GainFilter
 Inheritedposition : Number
[read-only] The position of the audio cursor in this source, as a frame index.
AbstractFilter
 Inheritedsource : IAudioSource
The underlying audio source for this filter.
AbstractFilter
Protected Properties
 PropertyDefined By
 Inherited_source : IAudioSource
The underlying source that acts as input to this filter.
AbstractFilter
Public Methods
 MethodDefined By
  
GainFilter(source:IAudioSource, gain:Number)
Create a new GainFilter.
GainFilter
  
[override]
GainFilter
 Inherited
getSample(numFrames:Number):Sample
Retrieve a number of sample frames from this source as a Sample object, starting from the audio cursor position.
AbstractFilter
 Inherited
Resets the audio cursor to the beginning of the source, and causes any cursor-dependent state in the source to be initialized.
AbstractFilter
Protected Methods
 MethodDefined By
  
transformChannel(data:Vector.<Number>, channel:Number, start:Number, numFrames:Number):void
[override]
GainFilter
Property Detail
gainproperty
public var gain:Number

The gain factor applied.

Constructor Detail
GainFilter()Constructor
public function GainFilter(source:IAudioSource, gain:Number)

Create a new GainFilter.

Parameters
source:IAudioSource — the underlying audio source
 
gain:Number — the gain factor
Method Detail
clone()method
override public function clone():IAudioSource

Returns
IAudioSource
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