@@ -7,7 +7,7 @@ like Web Audio, and a Flash fallback. A mechanism has been provided for easily t
7
7
8
8
9
9
## Example
10
- createjs.Sound.addEventListener("loadcomplete ", handleLoadComplete);
10
+ createjs.Sound.addEventListener("fileload ", handleLoadComplete);
11
11
createjs.Sound.registerSound({src:"path/to/sound.mp3|path/to/sound.ogg", id:"sound"});
12
12
function handleLoadComplete(event) {
13
13
createjs.Sound.play("sound");
@@ -30,18 +30,17 @@ Built by gskinner.com, and released for free under the MIT license, which means
30
30
## Classes
31
31
32
32
### [ Sound] ( http://createjs.com/Docs/SoundJS/classes/Sound.html )
33
- The core API for playing sounds. Simply call Sound.play(sound, ...options), and a sound instance is created that can be
33
+ The core API for playing sounds. Call createjs. Sound.play(sound, ...options), and a sound instance is created that can be
34
34
used to control the audio, and dispatches events when it is complete, loops, or is interrupted.
35
35
36
36
### [ SoundInstance] ( http://createjs.com/Docs/SoundJS/classes/SoundInstance.html )
37
37
A controllable sound object that wraps the actual plugin implementation, providing a consistent API for audio playback,
38
- no matter what happens in the background. Sound instances can be paused, muted, and stopped, and the volume, pan (where
39
- available), and position using the simple API.
38
+ no matter what happens in the background. Sound instances can be paused, muted, and stopped; and the volume, pan (where
39
+ available), and position changed using the simple API.
40
40
41
41
### [ WebAudioPlugin] ( http://createjs.com/Docs/SoundJS/classes/WebAudioPlugin.html )
42
- The default, built-in plugin, which uses Web Audio APIs to playback sounds. This is currently only available in Chrome
43
- on OSX and Windows, and iOS 6+. Note that WebAudio will fail to load when run locally, and the HTML audio plugin will
44
- be used instead.
42
+ The default, built-in plugin, which uses Web Audio APIs to playback sounds. Note that WebAudio will fail to load when
43
+ run locally, and the HTML audio plugin will be used instead.
45
44
46
45
### [ HTMLAudioPlugin] ( http://createjs.com/Docs/SoundJS/classes/HTMLAudioPlugin.html )
47
46
The fallback built-in plugin, which manages audio playback via the HTML5 <audio > tag. This will be used in instances
0 commit comments