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 @@ -1342,9 +1342,6 @@ class SoundFile {
1342
1342
* Accepts a callback function, a time (in seconds) at which to trigger
1343
1343
* the callback, and an optional parameter for the callback.
1344
1344
*
1345
- * Time will be passed as the first parameter to the callback function,
1346
- * and param will be the second parameter.
1347
- *
1348
1345
*
1349
1346
* @method addCue
1350
1347
* @for p5.SoundFile
@@ -1356,10 +1353,10 @@ class SoundFile {
1356
1353
* the callback function.
1357
1354
* @param {Function } callback Name of a function that will be
1358
1355
* called at the given time. The callback will
1359
- * receive time and (optionally) param as its
1360
- * two parameters .
1356
+ * optionally receive the third argument as its
1357
+ * parameter .
1361
1358
* @param {Object } [value] An object to be passed as the
1362
- * second parameter to the
1359
+ * optional parameter to the
1363
1360
* callback function.
1364
1361
* @return {Number } id ID of this cue,
1365
1362
* useful for removeCue(id)
@@ -1455,7 +1452,6 @@ class SoundFile {
1455
1452
var leftLimit = this . _prevUpdateTime || 0 ;
1456
1453
var rightLimit = playbackTime ;
1457
1454
if ( leftLimit <= callbackTime && callbackTime <= rightLimit ) {
1458
- // pass the scheduled callbackTime as parameter to the callback
1459
1455
cue . callback ( val ) ;
1460
1456
}
1461
1457
}
You can’t perform that action at this time.
0 commit comments