Skip to content

Commit

Permalink
move loadSound call to preload
Browse files Browse the repository at this point in the history
  • Loading branch information
Spongman committed Sep 10, 2018
1 parent 18de0d5 commit 469c799
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/soundfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -1660,9 +1660,10 @@ define(function (require) {
* <div><code>
* 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);
Expand Down

0 comments on commit 469c799

Please sign in to comment.