summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibAudio/Resampler.h
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2022-03-27 15:50:56 -0700
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-03-27 16:43:05 -0700
commit83e96569edbc47382e495685eaf5bb334692bd4a (patch)
tree66485320f67438ba70eeaab91b4ea0b33376f70b /Userland/Libraries/LibAudio/Resampler.h
parentecc0459f763ea4f0294a9ba00e9050aba7fd3907 (diff)
downloadserenity-83e96569edbc47382e495685eaf5bb334692bd4a.zip
LibAudio: Make sure we initialize ResampleHelper member variables
Found by Static Analysis: Sonar Cloud
Diffstat (limited to 'Userland/Libraries/LibAudio/Resampler.h')
-rw-r--r--Userland/Libraries/LibAudio/Resampler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibAudio/Resampler.h b/Userland/Libraries/LibAudio/Resampler.h
index 6ff633fb92..c7c7328df8 100644
--- a/Userland/Libraries/LibAudio/Resampler.h
+++ b/Userland/Libraries/LibAudio/Resampler.h
@@ -80,8 +80,8 @@ private:
const u32 m_source;
const u32 m_target;
u32 m_current_ratio { 0 };
- SampleType m_last_sample_l;
- SampleType m_last_sample_r;
+ SampleType m_last_sample_l {};
+ SampleType m_last_sample_r {};
};
class Buffer;