Class WebAudio

Handle webkit audio API

Class Summary
Constructor Attributes Constructor Name and Description
 
WebAudio(world)
Main class to handle webkit audio TODO make the clip detector from http://www.html5rocks.com/en/tutorials/webaudio/games/

Method Summary

Class Detail

WebAudio(world)
Main class to handle webkit audio TODO make the clip detector from http://www.html5rocks.com/en/tutorials/webaudio/games/
Parameters:
{tQuery.World} world Optional
the world on which to run

Field Detail

<static> {Boolean} WebAudio.isAvailable

Method Detail

  • {AudioContext} context()
    get the audio context
    Returns:
    {AudioContext} the audio context
  • {WebAudio.Sound} createSound()
    Create a sound
    Returns:
    {WebAudio.Sound} the sound just created
  • destroy()
    destructor
  • <static> WebAudio.Flow()
    gowiththeflow.js - a javascript flow control micro library https://github.com/jeromeetienne/gowiththeflow.js
    Defined in: webaudio.loader.js.
  • volume(value)
    getter/setter on the volume
    Parameters:
    value