Mercurial > hg > webaudioevaluationtool
diff interfaces/blank.js @ 489:159b87e5de67 Dev_main
Interfaces have startPlayback and stopPlayback methods to clean up code management. Looping playbacks now have a 2s cross-fade.
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Tue, 26 Jan 2016 13:52:56 +0000 |
parents | 3a9b869ba7f8 |
children | df2d916fd9cf c0022a09c4f6 |
line wrap: on
line diff
--- a/interfaces/blank.js Tue Jan 26 11:32:11 2016 +0000 +++ b/interfaces/blank.js Tue Jan 26 13:52:56 2016 +0000 @@ -29,6 +29,14 @@ { // progress is a value from 0 to 100 indicating the current download state of media files }; + this.startPlayback = function() + { + // Called when playback has begun + }; + this.stopPlayback = function() + { + // Called when playback has stopped. This gets called even if playback never started! + }; this.getValue = function() { // Return the current value of the object. If there is no value, return 0