Mercurial > hg > webaudioevaluationtool
comparison interfaces/blank.js @ 1360:a9eb4f6443d8
Interfaces have startPlayback and stopPlayback methods to clean up code management. Looping playbacks now have a 2s cross-fade.
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Tue, 26 Jan 2016 13:52:56 +0000 |
parents | 397e96ee781a |
children | df2d916fd9cf c0022a09c4f6 |
comparison
equal
deleted
inserted
replaced
1359:89ad0630d860 | 1360:a9eb4f6443d8 |
---|---|
27 }; | 27 }; |
28 this.updateLoading = function(progress) | 28 this.updateLoading = function(progress) |
29 { | 29 { |
30 // progress is a value from 0 to 100 indicating the current download state of media files | 30 // progress is a value from 0 to 100 indicating the current download state of media files |
31 }; | 31 }; |
32 this.startPlayback = function() | |
33 { | |
34 // Called when playback has begun | |
35 }; | |
36 this.stopPlayback = function() | |
37 { | |
38 // Called when playback has stopped. This gets called even if playback never started! | |
39 }; | |
32 this.getValue = function() | 40 this.getValue = function() |
33 { | 41 { |
34 // Return the current value of the object. If there is no value, return 0 | 42 // Return the current value of the object. If there is no value, return 0 |
35 }; | 43 }; |
36 this.getPresentedId = function() | 44 this.getPresentedId = function() |