import OfflineRenderer from '@mobilizing/library/js/Mobilizing/renderer/audio/OfflineRenderer.js'
OfflineRenderer
Constructor Summary
Public Constructor | ||
public | constructor(params: Object) |
Member Summary
Public Members | ||
public | audioContext: * | |
public | events: * | |
public | length: * | |
public | masterGain: * | |
public | sources: *[] |
Method Summary
Public Methods | ||
public | beep(frequency: *) | |
public | duplicateSourcesFromRenderer(audioRenderer: Rendrer) Duplicates all the registered audio sources from the given AudioRenderer. | |
public | ||
public | getMasterGain(val: Number): * Get this audioContext's gain volume | |
public | registerNode(source: Source) Maintains an array of all the sources attached to this renderer | |
public | setMasterGain(val: Number) Set this audioContext's gain volume, use a 1 sec linear ramp to avoid clicks | |
public | Renders this context contents (all the connected sources) to an audio buffer |
Public Constructors
Public Members
public audioContext: * source
public events: * source
public length: * source
public masterGain: * source
public sources: *[] source
Public Methods
public beep(frequency: *) source
Params:
Name | Type | Attribute | Description |
frequency | * |
public duplicateSourcesFromRenderer(audioRenderer: Rendrer) source
Duplicates all the registered audio sources from the given AudioRenderer. Each source will use the same buffer than its original
Params:
Name | Type | Attribute | Description |
audioRenderer | Rendrer | to take sources form |
public getMasterGain(val: Number): * source
Get this audioContext's gain volume
Params:
Name | Type | Attribute | Description |
val | Number |
Return:
* |
public registerNode(source: Source) source
Maintains an array of all the sources attached to this renderer
Params:
Name | Type | Attribute | Description |
source | Source |
public setMasterGain(val: Number) source
Set this audioContext's gain volume, use a 1 sec linear ramp to avoid clicks
Params:
Name | Type | Attribute | Description |
val | Number |
public startRendering() source
Renders this context contents (all the connected sources) to an audio buffer