change example to use createGain() instead of createGainNode()
authorcrogers
Mon, 01 Jul 2013 11:33:27 -0700
changeset 323 4186aad8cbe6
parent 322 4228b6292890
child 324 649d50bf073e
change example to use createGain() instead of createGainNode()
webaudio/specification.html
--- a/webaudio/specification.html	Tue Jun 18 12:10:03 2013 -0700
+++ b/webaudio/specification.html	Mon Jul 01 11:33:27 2013 -0700
@@ -617,8 +617,8 @@
     reverb = context.createConvolver();
 
     // Create master wet and dry.
-    masterDry = context.createGainNode();
-    masterWet = context.createGainNode();
+    masterDry = context.createGain();
+    masterWet = context.createGain();
 
     // Connect final compressor to final destination.
     compressor.connect(context.destination);
@@ -640,8 +640,8 @@
     source3.frequency.value = 440;
 
     // Connect source1
-    dry1 = context.createGainNode();
-    wet1 = context.createGainNode();
+    dry1 = context.createGain();
+    wet1 = context.createGain();
     source1.connect(lowpassFilter);
     lowpassFilter.connect(dry1);
     lowpassFilter.connect(wet1);
@@ -649,8 +649,8 @@
     wet1.connect(reverb);
 
     // Connect source2
-    dry2 = context.createGainNode();
-    wet2 = context.createGainNode();
+    dry2 = context.createGain();
+    wet2 = context.createGain();
     source2.connect(waveShaper);
     waveShaper.connect(dry2);
     waveShaper.connect(wet2);
@@ -658,8 +658,8 @@
     wet2.connect(reverb);
 
     // Connect source3
-    dry3 = context.createGainNode();
-    wet3 = context.createGainNode();
+    dry3 = context.createGain();
+    wet3 = context.createGain();
     source3.connect(panner);
     panner.connect(dry3);
     panner.connect(wet3);