SoundJS

SoundJS  0.2.0

SoundJS > SoundJS > HTMLAudioPlugin
Search:
 
Filters

Class HTMLAudioPlugin

Play sounds using HTML

Constructor

HTMLAudioPlugin ( )

Properties

capabilities - static Object

The capabilities of the plugin.
Default Value: null

MAX_INSTANCES - static Number

The maximum number of instances that can be played. This is a browser limitation.
Default Value: 30

Methods

create

SoundInstance create ( src )
Create a sound instance.
Parameters:
src <String> The source to use.
Returns: SoundInstance
A sound instance for playback and control.

generateCapabiities

static void generateCapabiities ( )
Determine the capabilities of the plugin.
Returns: void

isSupported

static Boolean isSupported ( )
Determine if the plugin can be used.
Returns: Boolean
If the plugin can be initialized.

register

Object register ( src , instances )
Pre-register a sound instance when preloading/setup.
Parameters:
src <String> The source of the audio
instances <Number> The number of concurrently playing instances to allow for the channel at any time.
Returns: Object
A result object, containing a tag for preloading purposes.