diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-06-17 22:38:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-17 22:38:57 +0200 |
commit | d572d3d2abf07ace216fd31f7ace97e4bfc76cc5 (patch) | |
tree | e17b3c41d77b7283345ac907781b9298959218ae /core/math | |
parent | 0daa868ab432d71442b76fa9bcfe3723abfc8718 (diff) | |
parent | d3f099457226ab833127ca66f5876855a9f2da0f (diff) |
Merge pull request #62156 from madmiraal/fix-61457
Ensure AudioFrame variables l and r are always initialised
Diffstat (limited to 'core/math')
-rw-r--r-- | core/math/audio_frame.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/audio_frame.h b/core/math/audio_frame.h index 8b244e9fe4..b3d63c0094 100644 --- a/core/math/audio_frame.h +++ b/core/math/audio_frame.h @@ -52,7 +52,7 @@ static const float AUDIO_MIN_PEAK_DB = -200.0f; // linear2db(AUDIO_PEAK_OFFSET) struct AudioFrame { //left and right samples - float l, r; + float l = 0.f, r = 0.f; _ALWAYS_INLINE_ const float &operator[](int idx) const { return idx == 0 ? l : r; } _ALWAYS_INLINE_ float &operator[](int idx) { return idx == 0 ? l : r; } |