Constructor Summary
| Public Constructor | ||
| public |
constructor(options: Object) Construct a source, with and AudioContext and an HrtfSet. |
|
Member Summary
| Public Members | ||
| public set |
crossfadeDuration(duration: Number): * Set the crossfade duration when the position changes. |
|
| public get |
Get the crossfade duration when the position changes. |
|
| public set |
Refer an external HRTF set. |
|
| public get |
Get the HrtfSet. |
|
| public set |
position(positionRequest: Coordinates): * Set the position of the source and updates. |
|
Method Summary
| Public Methods | ||
| public |
connectInput(nodesToConnect: AudioNode | Array<AudioNode>, output: Number, input: Number): this Connect the input of a source. |
|
| public |
connectOutput(nodesToConnect: AudioNode | Array<AudioNode>, output: Number, input: Number): this Connect the output of a source. |
|
| public |
disconnectInput(nodesToDisconnect: AudioNode | Array<AudioNode>): this Disconnect the input of a source. |
|
| public |
disconnectOutput(nodesToDisconnect: AudioNode | Array<AudioNode>): this Disconnect the output of a source. |
|
Public Constructors
public constructor(options: Object) source
Construct a source, with and AudioContext and an HrtfSet.
Params:
| Name | Type | Attribute | Description |
| options | Object | ||
| options.audioContext | AudioContext | mandatory for the creation of FIR audio buffers |
|
| options.hrtfSet | HrtfSet | ||
| options.position | coordinate |
|
in 'gl' coordinate system. Source#position |
| options.crossfadeDuration | Number |
|
in seconds Source#crossfadeDuration |
See:
Public Members
public set crossfadeDuration(duration: Number): * source
Set the crossfade duration when the position changes.
public get crossfadeDuration: Number: * source
Get the crossfade duration when the position changes.
public set position(positionRequest: Coordinates): * source
Set the position of the source and updates.
Public Methods
public connectInput(nodesToConnect: AudioNode | Array<AudioNode>, output: Number, input: Number): this source
Connect the input of a source.
Return:
| this |
public connectOutput(nodesToConnect: AudioNode | Array<AudioNode>, output: Number, input: Number): this source
Connect the output of a source.
Return:
| this |