API documentation  2.0rc1
Public Member Functions | List of all members
client::OfflineAudioContext Class Reference

#include <clientlib.h>

Inherits client::AudioContextBase.

Public Member Functions

double get_length ()
 
EventListenerget_oncomplete ()
 
void set_oncomplete (EventListener *)
 
PromisestartRendering ()
 
Promisesuspend (double suspendTime)
 
void addEventListener (const String &type, EventListener *listener)
 
void addEventListener (const String &type, EventListener *listener, bool options)
 
void addEventListener (const String &type, EventListener *listener, AddEventListenerOptions *options)
 
void addEventListener (const String &type, EventListenerObject *listener)
 
void addEventListener (const String &type, EventListenerObject *listener, AddEventListenerOptions *options)
 
void removeEventListener (const String &type, EventListener *listener)
 
void removeEventListener (const String &type, EventListener *listener, bool options)
 
void removeEventListener (const String &type, EventListener *listener, EventListenerOptions *options)
 
void removeEventListener (const String &type, EventListenerObject *listener)
 
void removeEventListener (const String &type, EventListenerObject *listener, EventListenerOptions *options)
 
OfflineAudioContextget_prototype ()
 
void set_prototype (OfflineAudioContext *)
 
 OfflineAudioContext (double numberOfChannels, double length, double sampleRate)
 
- Public Member Functions inherited from client::AudioContextBase
double get_currentTime ()
 
AudioDestinationNodeget_destination ()
 
AudioListenerget_listener ()
 
EventListenerget_onstatechange ()
 
void set_onstatechange (EventListener *)
 
double get_sampleRate ()
 
Stringget_state ()
 
Promiseclose ()
 
AnalyserNodecreateAnalyser ()
 
BiquadFilterNodecreateBiquadFilter ()
 
AudioBuffercreateBuffer (double numberOfChannels, double length, double sampleRate)
 
AudioBufferSourceNodecreateBufferSource ()
 
ChannelMergerNodecreateChannelMerger ()
 
ChannelMergerNodecreateChannelMerger (double numberOfInputs)
 
ChannelSplitterNodecreateChannelSplitter ()
 
ChannelSplitterNodecreateChannelSplitter (double numberOfOutputs)
 
ConvolverNodecreateConvolver ()
 
DelayNodecreateDelay ()
 
DelayNodecreateDelay (double maxDelayTime)
 
DynamicsCompressorNodecreateDynamicsCompressor ()
 
GainNodecreateGain ()
 
IIRFilterNodecreateIIRFilter (Array *feedforward, Array *feedback)
 
MediaElementAudioSourceNodecreateMediaElementSource (HTMLMediaElement *mediaElement)
 
MediaStreamAudioSourceNodecreateMediaStreamSource (MediaStream *mediaStream)
 
OscillatorNodecreateOscillator ()
 
PannerNodecreatePanner ()
 
PeriodicWavecreatePeriodicWave (Float32Array *real, Float32Array *imag)
 
PeriodicWavecreatePeriodicWave (Float32Array *real, Float32Array *imag, PeriodicWaveConstraints *constraints)
 
ScriptProcessorNodecreateScriptProcessor ()
 
ScriptProcessorNodecreateScriptProcessor (double bufferSize)
 
ScriptProcessorNodecreateScriptProcessor (double bufferSize, double numberOfInputChannels)
 
ScriptProcessorNodecreateScriptProcessor (double bufferSize, double numberOfInputChannels, double numberOfOutputChannels)
 
StereoPannerNodecreateStereoPanner ()
 
WaveShaperNodecreateWaveShaper ()
 
PromisedecodeAudioData (ArrayBuffer *audioData)
 
PromisedecodeAudioData (ArrayBuffer *audioData, EventListener *successCallback)
 
PromisedecodeAudioData (ArrayBuffer *audioData, EventListener *successCallback, EventListener *errorCallback)
 
Promiseresume ()
 
void addEventListener (const String &type, EventListener *listener)
 
void addEventListener (const String &type, EventListener *listener, bool options)
 
void addEventListener (const String &type, EventListener *listener, AddEventListenerOptions *options)
 
void addEventListener (const String &type, EventListenerObject *listener)
 
void addEventListener (const String &type, EventListenerObject *listener, AddEventListenerOptions *options)
 
void removeEventListener (const String &type, EventListener *listener)
 
void removeEventListener (const String &type, EventListener *listener, bool options)
 
void removeEventListener (const String &type, EventListener *listener, EventListenerOptions *options)
 
void removeEventListener (const String &type, EventListenerObject *listener)
 
void removeEventListener (const String &type, EventListenerObject *listener, EventListenerOptions *options)
 
- Public Member Functions inherited from client::EventTarget
void addEventListener (const String &type, EventListener *listener)
 
void addEventListener (const String &type, EventListener *listener, bool options)
 
void addEventListener (const String &type, EventListener *listener, AddEventListenerOptions *options)
 
void addEventListener (const String &type, EventListenerObject *listener)
 
void addEventListener (const String &type, EventListenerObject *listener, AddEventListenerOptions *options)
 
bool dispatchEvent (Event *evt)
 
void removeEventListener (const String &type)
 
void removeEventListener (const String &type, EventListener *listener)
 
void removeEventListener (const String &type, EventListener *listener, EventListenerOptions *options)
 
void removeEventListener (const String &type, EventListener *listener, bool options)
 
void removeEventListener (const String &type, EventListenerObject *listener)
 
void removeEventListener (const String &type, EventListenerObject *listener, bool options)
 
EventTargetget_prototype ()
 
void set_prototype (EventTarget *)
 
 EventTarget ()
 
- Public Member Functions inherited from client::Object
 Object ()
 
template<typename T >
valueOf ()
 
 operator double () const
 
Objectoperator[] (const client::String &name) const
 
void set_ (const client::String &name, Object *v)
 
template<typename T , typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
void set_ (const client::String &name, T v)
 
bool hasOwnProperty (const client::String &name)
 

Constructor & Destructor Documentation

◆ OfflineAudioContext()

client::OfflineAudioContext::OfflineAudioContext ( double  numberOfChannels,
double  length,
double  sampleRate 
)

Member Function Documentation

◆ addEventListener() [1/5]

void client::OfflineAudioContext::addEventListener ( const String type,
EventListener listener 
)

◆ addEventListener() [2/5]

void client::OfflineAudioContext::addEventListener ( const String type,
EventListener listener,
bool  options 
)

◆ addEventListener() [3/5]

void client::OfflineAudioContext::addEventListener ( const String type,
EventListener listener,
AddEventListenerOptions options 
)

◆ addEventListener() [4/5]

void client::OfflineAudioContext::addEventListener ( const String type,
EventListenerObject listener 
)

◆ addEventListener() [5/5]

void client::OfflineAudioContext::addEventListener ( const String type,
EventListenerObject listener,
AddEventListenerOptions options 
)

◆ get_length()

double client::OfflineAudioContext::get_length ( )

◆ get_oncomplete()

EventListener* client::OfflineAudioContext::get_oncomplete ( )

◆ get_prototype()

OfflineAudioContext* client::OfflineAudioContext::get_prototype ( )

◆ removeEventListener() [1/5]

void client::OfflineAudioContext::removeEventListener ( const String type,
EventListener listener 
)

◆ removeEventListener() [2/5]

void client::OfflineAudioContext::removeEventListener ( const String type,
EventListener listener,
bool  options 
)

◆ removeEventListener() [3/5]

void client::OfflineAudioContext::removeEventListener ( const String type,
EventListener listener,
EventListenerOptions options 
)

◆ removeEventListener() [4/5]

void client::OfflineAudioContext::removeEventListener ( const String type,
EventListenerObject listener 
)

◆ removeEventListener() [5/5]

void client::OfflineAudioContext::removeEventListener ( const String type,
EventListenerObject listener,
EventListenerOptions options 
)

◆ set_oncomplete()

void client::OfflineAudioContext::set_oncomplete ( EventListener )

◆ set_prototype()

void client::OfflineAudioContext::set_prototype ( OfflineAudioContext )

◆ startRendering()

Promise* client::OfflineAudioContext::startRendering ( )

◆ suspend()

Promise* client::OfflineAudioContext::suspend ( double  suspendTime)