AudioContext
Recorder Simple Audio Recorder based on WebAudio technology
Constructor Summary
Public Constructor | ||
public |
constructor(audioContext: Object, debugNameSpace: string) Construct the Player. |
Member Summary
Public Members | ||
public |
Private object to hold AudioContext node. |
|
public |
This will be the error function. |
|
public |
This will be the log function. |
Private Members | ||
private |
Keep a list of all registered event listeners. |
Method Summary
Public Methods | ||
public |
addEventListener(args: ...*) Wraps the addEventListener which is available on the AudioContext node. |
|
public |
Get the audio context or create one. |
|
public |
Use this method to conveniently fire an event. |
|
public |
|
|
public |
removeEventListener(args: ...*) Wraps the removeEventListener which is available on the AudioContext node. |
|
public |
Resume a suspended AudioContext. |
|
public |
Suspend the AudioContext to preserve power and such. |
Public Constructors
Public Members
Private Members
Public Methods
public addEventListener(args: ...*) source
Wraps the addEventListener which is available on the AudioContext node. Note that it is requierd to pass a named function to actually be able to remove an event listeners. This is just how the EventTarget.removeEventListener works. There are no extra checks for.
Params:
Name | Type | Attribute | Description |
args | ...* | Array with passed arguments. |
public fireEvent(eventName: string, data: Object) source
Use this method to conveniently fire an event. We could, if we wanted, add some data.
public removeAllEventListeners() source
public removeEventListener(args: ...*) source
Wraps the removeEventListener which is available on the AudioContext node. Make sure to call with the same arguments as the addEventListner.
If you didn't call the addEventListener with a named function, please note that you won't be able to remove the eventListener.
Params:
Name | Type | Attribute | Description |
args | ...* | Array with passed arguments. |