summaryrefslogtreecommitdiff
path: root/servers/audio
diff options
context:
space:
mode:
authorRafał Mikrut <mikrutrafal54@gmail.com>2020-04-01 19:29:35 +0200
committerRafał Mikrut <mikrutrafal54@gmail.com>2020-04-01 19:29:35 +0200
commit359bebd8c08a626e64ade1ac45c3c925352bd8a4 (patch)
tree83769dbf9cdb5ca7e6dee2e04b95dfc2c1f587c4 /servers/audio
parent0168709978154a89f137b44f33647e5d28a46250 (diff)
Fix out of bound array access caused by unassigned variable
Diffstat (limited to 'servers/audio')
-rw-r--r--servers/audio/effects/audio_effect_pitch_shift.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/servers/audio/effects/audio_effect_pitch_shift.cpp b/servers/audio/effects/audio_effect_pitch_shift.cpp
index 56529e208e..a74ac3c007 100644
--- a/servers/audio/effects/audio_effect_pitch_shift.cpp
+++ b/servers/audio/effects/audio_effect_pitch_shift.cpp
@@ -363,4 +363,7 @@ AudioEffectPitchShift::AudioEffectPitchShift() {
pitch_scale = 1.0;
oversampling = 4;
fft_size = FFT_SIZE_2048;
+ wet = 0.0;
+ dry = 0.0;
+ filter = false;
}