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 {
114114 identifier: " EQ Frequency 2 " ,
115115 name: " EQ Frequency 2 " ,
116116 address: akGetParameterAddress ( " ZitaReverbParameterEqualizerFrequency2 " ) ,
117- defaultValue: 1500 .0,
117+ defaultValue: 1000 .0,
118118 range: 160.0 ... 1000.0 ,
119119 unit: . hertz
120120 )
Original file line number Diff line number Diff line change @@ -79,7 +79,12 @@ public class PhaseLockedVocoder: Node {
7979 self . amplitude = amplitude
8080 self . pitchRatio = pitchRatio
8181 }
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+
8388 internal func loadFile( _ avAudioFile: AVAudioFile ) {
8489 Exit: do {
8590 var err : OSStatus = noErr
You can’t perform that action at this time.
0 commit comments