File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -1420,9 +1420,6 @@ class SoundFile {
14201420 * Accepts a callback function, a time (in seconds) at which to trigger
14211421 * the callback, and an optional parameter for the callback.
14221422 *
1423- * Time will be passed as the first parameter to the callback function,
1424- * and param will be the second parameter.
1425- *
14261423 *
14271424 * @method addCue
14281425 * @for p5.SoundFile
@@ -1434,10 +1431,10 @@ class SoundFile {
14341431 * the callback function.
14351432 * @param {Function } callback Name of a function that will be
14361433 * called at the given time. The callback will
1437- * receive time and (optionally) param as its
1438- * two parameters .
1434+ * optionally receive the third argument as its
1435+ * parameter .
14391436 * @param {Object } [value] An object to be passed as the
1440- * second parameter to the
1437+ * optional parameter to the
14411438 * callback function.
14421439 * @return {Number } id ID of this cue,
14431440 * useful for removeCue(id)
@@ -1533,7 +1530,6 @@ class SoundFile {
15331530 var leftLimit = this . _prevUpdateTime || 0 ;
15341531 var rightLimit = playbackTime ;
15351532 if ( leftLimit <= callbackTime && callbackTime <= rightLimit ) {
1536- // pass the scheduled callbackTime as parameter to the callback
15371533 cue . callback ( val ) ;
15381534 }
15391535 }
You can’t perform that action at this time.
0 commit comments