File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -103,20 +103,7 @@ class Reverb extends Effect {
103
103
*/
104
104
process ( src , seconds , decayRate , reverse ) {
105
105
src . connect ( this . input ) ;
106
- var rebuild = false ;
107
- if ( seconds ) {
108
- this . _seconds = seconds ;
109
- rebuild = true ;
110
- }
111
- if ( decayRate ) {
112
- this . _decay = decayRate ;
113
- }
114
- if ( reverse ) {
115
- this . _reverse = reverse ;
116
- }
117
- if ( rebuild ) {
118
- this . _buildImpulse ( ) ;
119
- }
106
+ this . set ( seconds , decayRate , reverse ) ;
120
107
}
121
108
122
109
/**
Original file line number Diff line number Diff line change @@ -27,4 +27,5 @@ import('./tests/p5.Noise.js');
27
27
import ( './tests/p5.Panner.js' ) ;
28
28
import ( './tests/p5.Panner3d.js' ) ;
29
29
import ( './tests/p5.Delay.js' ) ;
30
+ import ( './tests/p5.Reverb.js' ) ;
30
31
import ( './tests/p5.Listener3d.js' ) ;
You can’t perform that action at this time.
0 commit comments