File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -2945,11 +2945,10 @@ function () {
2945
2945
} ( ) ;
2946
2946
/**
2947
2947
* loadSound() returns a new p5.SoundFile from a specified
2948
- * path. If called during preload(), the p5.SoundFile will be ready
2949
- * to play in time for setup() and draw(). If called outside of
2950
- * preload, the p5.SoundFile will not be ready immediately, so
2951
- * loadSound accepts a callback as the second parameter. Using a
2952
- * <a href="https://github.com/processing/p5.js/wiki/Local-server">
2948
+ * path. If used with asynchronous setup (via `async`/`await`), the p5.SoundFile
2949
+ * will be ready to play in time for `setup()` and `draw()`. If called outside of an async context,
2950
+ * the p5.SoundFile will not be ready immediately, so loadSound accepts a callback as the second
2951
+ * parameter. Using a <a href="https://github.com/processing/p5.js/wiki/Local-server">
2953
2952
* local server</a> is recommended when loading external files.
2954
2953
*
2955
2954
* @method loadSound
You can’t perform that action at this time.
0 commit comments