File tree Expand file tree Collapse file tree 3 files changed +20
-10
lines changed
Expand file tree Collapse file tree 3 files changed +20
-10
lines changed Original file line number Diff line number Diff line change 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 } ;
You can’t perform that action at this time.
0 commit comments