Add missing initializers to sound classes

master
Piotr Dziwinski 2015-08-11 21:14:08 +02:00
parent 5879de82ac
commit 34e4fb4508
2 changed files with 6 additions and 5 deletions

View File

@ -22,6 +22,7 @@
Channel::Channel() Channel::Channel()
: m_buffer(nullptr), : m_buffer(nullptr),
m_source(0),
m_priority(0), m_priority(0),
m_id(0), m_id(0),
m_startAmplitude(0.0f), m_startAmplitude(0.0f),

View File

@ -38,11 +38,11 @@
struct SoundOper struct SoundOper
{ {
float finalAmplitude; float finalAmplitude = 0.0f;
float finalFrequency; float finalFrequency = 0.0f;
float totalTime; float totalTime = 0.0f;
float currentTime; float currentTime = 0.0f;
SoundNext nextOper; SoundNext nextOper = {};
}; };