Skip to content

Commit d36a199

Browse files
committed
Fixes mixingSound Example
Replaced calls to connectSource with setInput. This example was still calling p5.Gain.connectSource instead of p5.Gain.setInput introduced in commit 41d6d1d causing the sketch not to run.
1 parent 0ba2335 commit d36a199

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/mixingSounds/sketch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ function setup() {
2222
sound1.disconnect(); // diconnect from p5 output
2323

2424
gain1 = new p5.Gain(); // setup a gain node
25-
gain1.connectSource(sound1); // connect the first sound to its input
25+
gain1.setInput(sound1); // connect the first sound to its input
2626
gain1.connect(gain3); // connect its output to the 'master'
2727

2828
sound2.rate(1);
2929
sound2.disconnect();
3030
sound2.loop();
3131

3232
gain2 = new p5.Gain();
33-
gain2.connectSource(sound2);
33+
gain2.setInput(sound2);
3434
gain2.connect(gain3);
3535

3636
}

0 commit comments

Comments
 (0)