Skip to content

Commit 469c799

Browse files
author
Spongman
committed
move loadSound call to preload
1 parent 18de0d5 commit 469c799

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/soundfile.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,9 +1660,10 @@ define(function (require) {
16601660
* <div><code>
16611661
* var inp, button, mySound;
16621662
* var fileName = 'cool';
1663-
* function setup() {
1663+
* function preload() {
16641664
* mySound = loadSound('assets/doorbell.mp3');
1665-
*
1665+
* }
1666+
* function setup() {
16661667
* btn = createButton('click to save file');
16671668
* btn.position(0, 0);
16681669
* btn.mouseClicked(handleMouseClick);

0 commit comments

Comments
 (0)