AudioNodeInit
Extends
Readonly<AudioNodeProps<T,R>>
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends AudioNode | AudioNode |
R extends BaseAudioNode | BaseAudioNode |
Properties
| Property | Modifier | Type | Inherited from |
|---|---|---|---|
audioNode | readonly | undefined | T | Readonly.audioNode |
name | readonly | string | Readonly.name |
node | readonly | undefined | R | Readonly.node |
outputs | readonly | WeakSet< | AudioNodeInit<AudioNode, BaseAudioNode> | AudioParam> | Readonly.outputs |
toJSON? | public | () => unknown | - |
Methods
connect()
connect(param): void;
Internal
Internal function to connect a signal output Should ONLY be CALLED inside an AudioGraph
Parameters
| Parameter | Type | Description |
|---|---|---|
param | AudioNodeInitConnectParam | The init to connect |
Returns
void
create()
create(context, prevNode?): [T, R];
Internal
Internal function to create the actual AudioNode. Should ONLY be CALLED inside an AudioGraph
Parameters
| Parameter | Type | Description |
|---|---|---|
context | AudioContext | Audio Context to use |
prevNode? | AudioNode | The input AudioNode for connection |
Returns
[T, R]
disconnect()
disconnect(param): void;
Internal
Internal function to disconnect a signal output Should ONLY be CALLED inside an AudioGraph
Parameters
| Parameter | Type | Description |
|---|---|---|
param | AudioNodeInitConnectParam | The init to disconnect |
Returns
void
hasConnectedTo()
hasConnectedTo(init): boolean;
Check if there is a connection to the provided init
Parameters
| Parameter | Type | Description |
|---|---|---|
init | | AudioNodeInit<AudioNode, BaseAudioNode> | AudioParam | AudioNodeInit |
Returns
boolean
release()
release(): void;
Internal
Internal function to release the node init resources Should ONLY be CALLED inside an AudioGraph
Returns
void