Kaynağa Gözat

Audio: Use .setValueAtTime() in example.

Mugen87 7 yıl önce
ebeveyn
işleme
a5ad0a933e
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      examples/webaudio_sandbox.html

+ 1 - 1
examples/webaudio_sandbox.html

@@ -130,7 +130,7 @@
 				var sound3 = new THREE.PositionalAudio( listener );
 				var oscillator = listener.context.createOscillator();
 				oscillator.type = 'sine';
-				oscillator.frequency.setTargetAtTime( 144, sound3.context.currentTime, 0.01 );
+				oscillator.frequency.setValueAtTime( 144, sound3.context.currentTime );
 				oscillator.start(0);
 				sound3.setNodeSource(oscillator);
 				sound3.setRefDistance( 20 );