@@ -44,9 +44,9 @@ var WebAudioSound = new Class({
4444 * BaseAudioContext.currentTime value.
4545 *
4646 * @private
47- * @property {number } startTime
47+ * @property {number } playTime
4848 */
49- this . startTime = 0 ;
49+ this . playTime = 0 ;
5050 /**
5151 * An array where we keep track of all rate updates during playback.
5252 *
@@ -115,7 +115,7 @@ var WebAudioSound = new Class({
115115 var when = this . manager . context . currentTime + delay ;
116116 var offset = ( this . currentMarker ? this . currentMarker . start : 0 ) + seek ;
117117 var duration = this . duration - seek ;
118- this . startTime = this . manager . context . currentTime - seek ;
118+ this . playTime = this . manager . context . currentTime - seek ;
119119 this . source = this . manager . context . createBufferSource ( ) ;
120120 this . source . buffer = this . audioBuffer ;
121121 this . source . connect ( this . muteNode ) ;
@@ -146,7 +146,7 @@ var WebAudioSound = new Class({
146146 this . source . stop ( ) ;
147147 this . source = null ;
148148 }
149- this . startTime = 0 ;
149+ this . playTime = 0 ;
150150 } ,
151151 /**
152152 * @protected
@@ -191,7 +191,7 @@ var WebAudioSound = new Class({
191191 }
192192 if ( this . isPlaying ) {
193193 this . rateUpdates . push ( {
194- time : this . manager . context . currentTime - this . startTime ,
194+ time : this . manager . context . currentTime - this . playTime ,
195195 rate : this . totalRate
196196 } ) ;
197197 }
@@ -207,7 +207,7 @@ var WebAudioSound = new Class({
207207 nextTime = this . rateUpdates [ i + 1 ] . time ;
208208 }
209209 else {
210- nextTime = this . manager . context . currentTime - this . startTime ;
210+ nextTime = this . manager . context . currentTime - this . playTime ;
211211 }
212212 currentTime += ( nextTime - this . rateUpdates [ i ] . time ) * this . rateUpdates [ i ] . rate ;
213213 }
0 commit comments