Represents a floating-point based signal

Static methods

@:value({ length : null, sourceStart : 0 })staticinlineaddInto(this:AudioChannelData, other:AudioChannel, sourceStart:Int = 0, ?length:Int):Void

Adds length values from calling AudioChannel starting at sourceStart into other, starting at sourceStart. Values are summed.

staticapplyGain(this:AudioChannelData, gain:Float):Void

Multiply all values in the signal by gain

staticclear(this:AudioChannelData):Void

Resets the buffer to silence (all 0.0)

staticcopy(this:AudioChannelData):AudioChannel

Create a new AudioChannel with the same parameters and data (deep copy)

@:value({ otherStart : 0, length : null, sourceStart : 0 })staticcopyInto(this:AudioChannelData, other:AudioChannel, sourceStart:Int = 0, ?length:Int, otherStart:Int = 0):Void

Copes length values from calling AudioChannel starting at sourceStart into other, starting at sourceStart. Values in other are replaced with values from calling AudioChannel.

staticisSilent(this:AudioChannelData):Bool

Uses sum of squares to determine sufficiently low energy

staticsetAll(this:AudioChannelData, value:Float):Void

Set all values in the signal to value

staticsumOfSquares(this:AudioChannelData):Float

Sum of squares of the data. A quick and dirty way to check energy level