waud.js
API Docs for v1.0.3
Show:

AudioManager

Summary

Audio Manager class instantiated in Waud.init method.

Constructor

AudioManager

Syntax

AudioManager

()

Summary

Example:

    Waud.audioManager

Methods

checkWebAudioAPISupport

Syntax

checkWebAudioAPISupport

()

Summary

Function to check web audio api support.

Used by Waud.init method.

createAudioContext

Syntax

createAudioContext

()

Summary

Function to create audio context.

Used by Waud.init method.

Returns:

AudioContext

destroy

Syntax

destroy

()

Summary

Function to close audio context and reset all variables.

Used by Waud.destroy method.

resumeContext

Syntax

resumeContext

()

Summary

This function resumes the progression of time in an audio context that has previously been suspended.

Example:

Waud.audioManager.resumeContext();

suspendContext

Syntax

suspendContext

()

Summary

This function suspends the progression of time in the audio context, temporarily halting audio hardware access and reducing CPU/battery usage in the process. This is useful if you want an application to power down the audio hardware when it will not be using an audio context for a while.

Example:

Waud.audioManager.suspendContext();

unlockAudio

Syntax

unlockAudio

()

Summary

Function to unlock audio on touchend event.

Used by Waud.enableTouchUnlock method.

Properties

audioContext

Syntax

audioContext

AudioContext protected

Summary

Audio Context instance.

AudioContextClass

Syntax

AudioContextClass

AudioContext | WebkitAudioContext private static

Summary

Audio Context Class determined based on the browser type. Refer checkWebAudioAPISupport method.

bufferList

Syntax

bufferList

Map protected

Summary

Audio buffer list.

gainNode

Syntax

gainNode

GainNode protected

Summary

Master Gain Node

types

Syntax

types

Map protected

Summary

Audio Types.