GainNode class

A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels.

MDN Reference

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

GainNode(BaseAudioContext context, [GainOptions? options])
factory

Properties

addEventListener ↔ void Function(String, [Object?, Object?])

Available on EventTarget, provided by the EventTarget$Typings extension

getter/setter pair
channelCount num

Available on AudioNode, provided by the AudioNode$Typings extension

MDN Reference
getter/setter pair
channelCountMode ChannelCountMode

Available on AudioNode, provided by the AudioNode$Typings extension

MDN Reference
getter/setter pair
channelInterpretation ChannelInterpretation

Available on AudioNode, provided by the AudioNode$Typings extension

MDN Reference
getter/setter pair
connect → ({void Function(AudioParam destinationParam, [num? output]) $1, AudioNode Function(AudioNode destinationNode, [num? output, num? input]) $2})

Available on AudioNode, provided by the AudioNode$Typings extension

Overload accessor: $1, $2
no setter
context BaseAudioContext

Available on AudioNode, provided by the AudioNode$Typings extension

MDN Reference
no setter
disconnect → ({void Function() $1, void Function(num output) $2, void Function(AudioNode destinationNode) $3, void Function(AudioParam destinationParam) $4, void Function(AudioNode destinationNode, num output) $5, void Function(AudioParam destinationParam, num output) $6, void Function(AudioNode destinationNode, num output, num input) $7})

Available on AudioNode, provided by the AudioNode$Typings extension

Overload accessor: $1, $2, $3, $4, $5, $6, $7
no setter
dispatchEvent bool Function(Event)

Available on EventTarget, provided by the EventTarget$Typings extension

getter/setter pair
gain AudioParam

Available on GainNode, provided by the GainNode$Typings extension

MDN Reference
no setter
hashCode int
The hash code for this object.
no setterinherited
numberOfInputs num

Available on AudioNode, provided by the AudioNode$Typings extension

MDN Reference
no setter
numberOfOutputs num

Available on AudioNode, provided by the AudioNode$Typings extension

MDN Reference
no setter
removeEventListener ↔ void Function(String, [Object?, Object?])

Available on EventTarget, provided by the EventTarget$Typings extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited