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 {
1420
1420
* Accepts a callback function, a time (in seconds) at which to trigger
1421
1421
* the callback, and an optional parameter for the callback.
1422
1422
*
1423
- * Time will be passed as the first parameter to the callback function,
1424
- * and param will be the second parameter.
1425
- *
1426
1423
*
1427
1424
* @method addCue
1428
1425
* @for p5.SoundFile
@@ -1434,10 +1431,10 @@ class SoundFile {
1434
1431
* the callback function.
1435
1432
* @param {Function } callback Name of a function that will be
1436
1433
* 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 .
1439
1436
* @param {Object } [value] An object to be passed as the
1440
- * second parameter to the
1437
+ * optional parameter to the
1441
1438
* callback function.
1442
1439
* @return {Number } id ID of this cue,
1443
1440
* useful for removeCue(id)
@@ -1533,7 +1530,6 @@ class SoundFile {
1533
1530
var leftLimit = this . _prevUpdateTime || 0 ;
1534
1531
var rightLimit = playbackTime ;
1535
1532
if ( leftLimit <= callbackTime && callbackTime <= rightLimit ) {
1536
- // pass the scheduled callbackTime as parameter to the callback
1537
1533
cue . callback ( val ) ;
1538
1534
}
1539
1535
}
You can’t perform that action at this time.
0 commit comments