fixed uninitialzed audio_size variable in WaveFileWriter

This commit is contained in:
Jordan Cristiano 2013-06-21 12:27:47 -04:00
parent fafdc4fcef
commit 8cf515359c

View File

@ -8,10 +8,11 @@
enum {BUF_SIZE = 32*1024};
WaveFileWriter::WaveFileWriter()
WaveFileWriter::WaveFileWriter():
skip_silence(false),
audio_size(0),
conv_buffer(NULL)
{
conv_buffer = 0;
skip_silence = false;
}
WaveFileWriter::~WaveFileWriter()
@ -39,6 +40,8 @@ bool WaveFileWriter::Start(const char *filename, unsigned int HLESampleRate)
return false;
}
audio_size = 0;
// -----------------
// Write file header
// -----------------