@@ -137,7 +137,7 @@ Object.defineProperty(WebAudioSound.prototype, 'mute', {
137137 } ,
138138 set : function ( value ) {
139139 this . currentConfig . mute = value ;
140- this . muteNode . gain . value = value ? 0 : 1 ;
140+ this . muteNode . gain . setValueAtTime ( value ? 0 : 1 , 0 ) ;
141141 }
142142} ) ;
143143/**
@@ -150,7 +150,7 @@ Object.defineProperty(WebAudioSound.prototype, 'volume', {
150150 } ,
151151 set : function ( value ) {
152152 this . currentConfig . volume = value ;
153- this . volumeNode . gain . value = value ;
153+ this . volumeNode . gain . setValueAtTime ( value , 0 ) ;
154154 }
155155} ) ;
156156/**
@@ -164,7 +164,7 @@ Object.defineProperty(WebAudioSound.prototype, 'rate', {
164164 set : function ( value ) {
165165 this . currentConfig . rate = value ;
166166 if ( this . source ) {
167- this . source . playbackRate . value = value * this . manager . rate ;
167+ this . source . playbackRate . setValueAtTime ( value * this . manager . rate , 0 ) ;
168168 }
169169 }
170170} ) ;
@@ -179,8 +179,7 @@ Object.defineProperty(WebAudioSound.prototype, 'detune', {
179179 set : function ( value ) {
180180 this . currentConfig . detune = value ;
181181 if ( this . source && this . source . detune ) {
182- this . source . detune . value =
183- Math . max ( - 1200 , Math . min ( value + this . manager . detune , 1200 ) ) ;
182+ this . source . detune . setValueAtTime ( Math . max ( - 1200 , Math . min ( value + this . manager . detune , 1200 ) ) , 0 ) ;
184183 }
185184 }
186185} ) ;
0 commit comments