@@ -38,14 +38,14 @@ var WebAudioSound = new Class({
3838 * @private
3939 * @property {GainNode } muteNode
4040 */
41- this . muteNode = ( manager . context . createGain || manager . context . createGainNode ) . call ( manager . context ) ;
41+ this . muteNode = manager . context . createGain ( ) ;
4242 /**
4343 * [description]
4444 *
4545 * @private
4646 * @property {GainNode } volumeNode
4747 */
48- this . volumeNode = ( manager . context . createGain || manager . context . createGainNode ) . call ( manager . context ) ;
48+ this . volumeNode = manager . context . createGain ( ) ;
4949 /**
5050 * The time at which the sound should have started from the beginning.
5151 * Based on BaseAudioContext.currentTime value.
@@ -158,7 +158,7 @@ var WebAudioSound = new Class({
158158 this . startTime = when ;
159159 this . source = this . createBufferSource ( ) ;
160160 this . applyConfig ( ) ;
161- ( this . source . start || this . source . noteGrainOn ) . call ( this . source , Math . max ( 0 , when ) , Math . max ( 0 , offset ) , Math . max ( 0 , duration ) ) ;
161+ this . source . start ( Math . max ( 0 , when ) , Math . max ( 0 , offset ) , Math . max ( 0 , duration ) ) ;
162162 this . resetConfig ( ) ;
163163 } ,
164164 /**
@@ -173,7 +173,7 @@ var WebAudioSound = new Class({
173173 this . loopTime = when ;
174174 this . loopSource = this . createBufferSource ( ) ;
175175 this . loopSource . playbackRate . setValueAtTime ( this . totalRate , 0 ) ;
176- ( this . loopSource . start || this . loopSource . noteGrainOn ) . call ( this . loopSource , Math . max ( 0 , when ) , Math . max ( 0 , offset ) , Math . max ( 0 , duration ) ) ;
176+ this . loopSource . start ( Math . max ( 0 , when ) , Math . max ( 0 , offset ) , Math . max ( 0 , duration ) ) ;
177177 } ,
178178 /**
179179 * @private
@@ -204,7 +204,7 @@ var WebAudioSound = new Class({
204204 */
205205 stopAndRemoveBufferSource : function ( ) {
206206 if ( this . source ) {
207- ( this . source . stop || this . source . noteOff ) . call ( this . source ) ;
207+ this . source . stop ( ) ;
208208 this . source = null ;
209209 }
210210 this . playTime = 0 ;
@@ -218,7 +218,7 @@ var WebAudioSound = new Class({
218218 */
219219 stopAndRemoveLoopBufferSource : function ( ) {
220220 if ( this . loopSource ) {
221- ( this . loopSource . stop || this . loopSource . noteOff ) . call ( this . loopSource ) ;
221+ this . loopSource . stop ( ) ;
222222 this . loopSource = null ;
223223 }
224224 this . loopTime = 0 ;
0 commit comments