Skip to content

Commit d7721f4

Browse files
committed
update documentation
1 parent 05c3c0b commit d7721f4

File tree

3 files changed

+20
-10
lines changed

3 files changed

+20
-10
lines changed

lib/p5.sound.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! p5.sound.js v0.2.16 2015-11-24 */
1+
/*! p5.sound.js v0.2.16 2015-11-30 */
22
(function (root, factory) {
33
if (typeof define === 'function' && define.amd)
44
define('p5.sound', ['p5'], function (p5) { (factory(p5));});
@@ -1659,13 +1659,18 @@ soundfile = function () {
16591659
};
16601660
/**
16611661
* Schedule an event to be called when the soundfile
1662-
* reaches the end of a buffer.
1662+
* reaches the end of a buffer. If the soundfile is
1663+
* playing through once, this will be called when it
1664+
* ends. If it is looping, it will be called when
1665+
* stop is called.
16631666
*
1664-
* @param {Function} callback [description]
1665-
* @return {[type]} [description]
1667+
* @method onended
1668+
* @param {Function} callback function to call when the
1669+
* soundfile has ended.
16661670
*/
16671671
p5.SoundFile.prototype.onended = function (callback) {
16681672
this._onended = callback;
1673+
return this;
16691674
};
16701675
p5.SoundFile.prototype.add = function () {
16711676
};

0 commit comments

Comments
 (0)