Skip to content

Commit

Permalink
Updated Documentation in SoundJS capability methods.
Browse files Browse the repository at this point in the history
Signed-off-by: Lanny McNie <lanny@gskinner.com>
  • Loading branch information
Lanny McNie committed Apr 30, 2012
1 parent a6522cc commit c87dc0c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Binary file added docs/SoundJS_docs-NEXT.zip
Binary file not shown.
14 changes: 12 additions & 2 deletions src/soundjs/SoundJS.js
Expand Up @@ -249,7 +249,16 @@
}

/**
* Get the active plugin's capabilities.
* Get the active plugin's capabilities, which help determine if a plugin can be
* used in the current environment, or if the plugin supports a specific feature.
* Capabilities include:
* <ul>
* <li><b>panning:</b> If the plugin can pan audio from left to right</li>
* <li><b>volume;</b> If the plugin can control audio volume.</li>
* <li><b>mp3:</b> If MP3 audio is supported.</li>
* <li><b>ogg:</b> If OGG audio is supported.</li>
* <li><b>mpeg:</b> If MPEG audio is supported.</li>
* <li><b>channels:</b> The maximum number of audio channels that can be created.</li>
* @method getCapabilities
* @return {Object} An object containing the capabilities of the active plugin.
* @static
Expand All @@ -259,7 +268,8 @@
}

/**
* Get a specific capability of the active plugin
* Get a specific capability of the active plugin. See the <b>getCapabilities</b> for a full list
* of capabilities.
* @method getCapability
* @param {String} key The capability to retrieve
* @return {String | Number | Boolean} The capability value.
Expand Down

0 comments on commit c87dc0c

Please sign in to comment.