Skip to content

Commit 4632045

Browse files
author
Lanny McNie
committed
Updated samples in readme to be correct
Signed-off-by: Lanny McNie <[email protected]>
1 parent 427ee86 commit 4632045

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

README.md

+6-7
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ like Web Audio, and a Flash fallback. A mechanism has been provided for easily t
77

88

99
## Example
10-
createjs.Sound.addEventListener("loadcomplete", handleLoadComplete);
10+
createjs.Sound.addEventListener("fileload", handleLoadComplete);
1111
createjs.Sound.registerSound({src:"path/to/sound.mp3|path/to/sound.ogg", id:"sound"});
1212
function handleLoadComplete(event) {
1313
createjs.Sound.play("sound");
@@ -30,18 +30,17 @@ Built by gskinner.com, and released for free under the MIT license, which means
3030
## Classes
3131

3232
### [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
3434
used to control the audio, and dispatches events when it is complete, loops, or is interrupted.
3535

3636
### [SoundInstance](http://createjs.com/Docs/SoundJS/classes/SoundInstance.html)
3737
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.
4040

4141
### [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.
4544

4645
### [HTMLAudioPlugin](http://createjs.com/Docs/SoundJS/classes/HTMLAudioPlugin.html)
4746
The fallback built-in plugin, which manages audio playback via the HTML5 <audio> tag. This will be used in instances

0 commit comments

Comments
 (0)