File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Sources/SoundpipeAudioKit Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ public class ZitaReverb: Node {
114
114
identifier: " EQ Frequency 2 " ,
115
115
name: " EQ Frequency 2 " ,
116
116
address: akGetParameterAddress ( " ZitaReverbParameterEqualizerFrequency2 " ) ,
117
- defaultValue: 1500 .0,
117
+ defaultValue: 1000 .0,
118
118
range: 160.0 ... 1000.0 ,
119
119
unit: . hertz
120
120
)
Original file line number Diff line number Diff line change @@ -79,7 +79,12 @@ public class PhaseLockedVocoder: Node {
79
79
self . amplitude = amplitude
80
80
self . pitchRatio = pitchRatio
81
81
}
82
-
82
+
83
+ /// Call this function after you are done with the node, to reset the au wavetable to prevent memory leaks
84
+ public func dispose( ) {
85
+ au. setWaveTable ( [ 0.0 ] )
86
+ }
87
+
83
88
internal func loadFile( _ avAudioFile: AVAudioFile ) {
84
89
Exit: do {
85
90
var err : OSStatus = noErr
You can’t perform that action at this time.
0 commit comments