From 34e4fb4508a655f4e4cab4c039f3015305b2b48b Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Tue, 11 Aug 2015 21:14:08 +0200 Subject: [PATCH] Add missing initializers to sound classes --- src/sound/oalsound/channel.cpp | 1 + src/sound/oalsound/channel.h | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/sound/oalsound/channel.cpp b/src/sound/oalsound/channel.cpp index 810eedeb..0a2fe5ef 100644 --- a/src/sound/oalsound/channel.cpp +++ b/src/sound/oalsound/channel.cpp @@ -22,6 +22,7 @@ Channel::Channel() : m_buffer(nullptr), + m_source(0), m_priority(0), m_id(0), m_startAmplitude(0.0f), diff --git a/src/sound/oalsound/channel.h b/src/sound/oalsound/channel.h index a1dfe066..b501b95a 100644 --- a/src/sound/oalsound/channel.h +++ b/src/sound/oalsound/channel.h @@ -38,11 +38,11 @@ struct SoundOper { - float finalAmplitude; - float finalFrequency; - float totalTime; - float currentTime; - SoundNext nextOper; + float finalAmplitude = 0.0f; + float finalFrequency = 0.0f; + float totalTime = 0.0f; + float currentTime = 0.0f; + SoundNext nextOper = {}; };