diff options
author | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2022-06-17 17:36:11 +0100 |
---|---|---|
committer | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2022-06-17 17:36:11 +0100 |
commit | d3f099457226ab833127ca66f5876855a9f2da0f (patch) | |
tree | d993172ee6c94c41bf33f94c08b37d60a3d560ab /core | |
parent | 78944fef820b7df87ca73d89169e68639ceef8e9 (diff) |
Ensure AudioFrame variables l and r are always initialised
Diffstat (limited to 'core')
-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; } |