Fixed missing initialization for voice data writer members.

This commit is contained in:
Jordan Cristiano 2018-03-30 17:29:14 -04:00
parent b0db8deafb
commit 56e6eef1da
2 changed files with 5 additions and 4 deletions

View File

@ -139,8 +139,8 @@ private:
private:
CELTDecoder* m_celtDecoder = NULL;
uint32_t m_frameSizeSamples;
uint32_t m_encodedFrameSizeBytes;
uint32_t m_frameSizeSamples = 0;
uint32_t m_encodedFrameSizeBytes = 0;
};
#endif // USE_VAUDIO_CELT
@ -162,7 +162,7 @@ private:
struct PlayerVoiceState
{
#ifdef USE_VAUDIO_CELT
IVoiceCodec* celtDecoder;
IVoiceCodec* celtDecoder = nullptr;
#else
CeltVoiceDecoder decoder;
#endif

View File

@ -9,7 +9,8 @@ class WaveFileWriter
{
public:
WaveFileWriter():
m_file(nullptr)
m_file(nullptr),
m_DataBytes(0)
{
}