aboutsummaryrefslogtreecommitdiffstats
path: root/al/source.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-12-20 01:53:27 -0800
committerChris Robinson <[email protected]>2023-12-20 01:53:27 -0800
commitaa6e04a5562052db172117043165ae999683b052 (patch)
tree11b36fabd9a542aca0f5ad234d365ce8067dd46d /al/source.h
parent59c466077fd6f16af64afcc6260bb61aa4e632dc (diff)
Ensure struct members are initialized
Diffstat (limited to 'al/source.h')
-rw-r--r--al/source.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/al/source.h b/al/source.h
index 69bedda3..1a93d927 100644
--- a/al/source.h
+++ b/al/source.h
@@ -108,19 +108,19 @@ struct ALsource {
/** Direct filter and auxiliary send info. */
struct {
- float Gain;
- float GainHF;
- float HFReference;
- float GainLF;
- float LFReference;
+ float Gain{};
+ float GainHF{};
+ float HFReference{};
+ float GainLF{};
+ float LFReference{};
} Direct;
struct SendData {
- ALeffectslot *Slot;
- float Gain;
- float GainHF;
- float HFReference;
- float GainLF;
- float LFReference;
+ ALeffectslot *Slot{};
+ float Gain{};
+ float GainHF{};
+ float HFReference{};
+ float GainLF{};
+ float LFReference{};
};
std::array<SendData,MaxSendCount> Send;