fixed uninitialzed audio_size variable in WaveFileWriter
This commit is contained in:
parent
fafdc4fcef
commit
8cf515359c
|
@ -8,10 +8,11 @@
|
||||||
|
|
||||||
enum {BUF_SIZE = 32*1024};
|
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()
|
WaveFileWriter::~WaveFileWriter()
|
||||||
|
@ -39,6 +40,8 @@ bool WaveFileWriter::Start(const char *filename, unsigned int HLESampleRate)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
audio_size = 0;
|
||||||
|
|
||||||
// -----------------
|
// -----------------
|
||||||
// Write file header
|
// Write file header
|
||||||
// -----------------
|
// -----------------
|
||||||
|
|
Loading…
Reference in New Issue