Repository

OfflineRenderer

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

events: *

public

length: *

public
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

Get this audioContext's gain volume

public

Maintains an array of all the sources attached to this renderer

public

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 constructor(params: Object) source

Params:

NameTypeAttributeDescription
paramsObject

Parameters object, given by the constructor.

params.lengthBoolean
  • optional
  • default: true

Set the length of this renderer restuling audioBuffer in seconds

Example:

    //to do

Public Members

public audioContext: * source

public events: * source

public length: * source

public masterGain: * source

public sources: *[] source

Public Methods

public beep(frequency: *) source

Params:

NameTypeAttributeDescription
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:

NameTypeAttributeDescription
audioRendererRendrer

to take sources form

public getCurrentTime(): Number source

Return:

Number

the current time of this audio renderer

public getMasterGain(val: Number): * source

Get this audioContext's gain volume

Params:

NameTypeAttributeDescription
valNumber

Return:

*

public registerNode(source: Source) source

Maintains an array of all the sources attached to this renderer

Params:

NameTypeAttributeDescription
sourceSource

public setMasterGain(val: Number) source

Set this audioContext's gain volume, use a 1 sec linear ramp to avoid clicks

Params:

NameTypeAttributeDescription
valNumber

public startRendering() source

Renders this context contents (all the connected sources) to an audio buffer