mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-27 03:19:19 +01:00
Ensure AudioFrame variables l and r are always initialised
(cherry picked from commit d3f099457226ab833127ca66f5876855a9f2da0f)
This commit is contained in:
parent
76a2ed0900
commit
24d15ae3f7
@ -51,7 +51,7 @@ static const float AUDIO_MIN_PEAK_DB = -200.0f; // linear2db(AUDIO_PEAK_OFFSET)
|
|||||||
|
|
||||||
struct AudioFrame {
|
struct AudioFrame {
|
||||||
//left and right samples
|
//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_ const float &operator[](int idx) const { return idx == 0 ? l : r; }
|
||||||
_ALWAYS_INLINE_ float &operator[](int idx) { return idx == 0 ? l : r; }
|
_ALWAYS_INLINE_ float &operator[](int idx) { return idx == 0 ? l : r; }
|
||||||
|
Loading…
Reference in New Issue
Block a user