diff --git a/src/soundfile.js b/src/soundfile.js index 68854130..22ebb97f 100644 --- a/src/soundfile.js +++ b/src/soundfile.js @@ -1660,9 +1660,10 @@ define(function (require) { *
* var inp, button, mySound; * var fileName = 'cool'; - * function setup() { + * function preload() { * mySound = loadSound('assets/doorbell.mp3'); - * + * } + * function setup() { * btn = createButton('click to save file'); * btn.position(0, 0); * btn.mouseClicked(handleMouseClick);