Class: AudioTimeEngine

AudioTimeEngine

This is the base class for all audio related time engine components. It is used to handle audio related events such as the playback of a media stream. It extends the TimeEngine class by the standard web audio node methods connect and disconnect.

example

Constructor

new AudioTimeEngine()

Source:
Example
import audio from 'waves-audio';

class MyEngine extends audio.AudioTimeEngine {
  constructor() {
    super();
    // ...
  }
}

Extends

  • TimeEngine

Members

(static) audioContext :AudioContext

Audio context used by the TimeEngine, default to the global audioContext

Type:
  • AudioContext
Source:
See:

(static) outputNode :AudioNode

Output audio node. By default the connect method connects a given node to this output node.

Type:
  • AudioNode
Default Value:
  • null
Source:

Methods

connect(target)

Connect to an audio node (e.g. audioContext.destination)

Parameters:
Name Type Description
target AudioNode

Target audio node

Source:

disconnect(target)

Disconnect from an audio node (e.g. audioContext.destination). If undefined disconnect from all target nodes.

Parameters:
Name Type Description
target AudioNode

Target audio node.

Source: