diff options
| author | Jordan Cristiano <jordan.cristi@gmail.com> | 2013-06-22 23:49:16 -0400 |
|---|---|---|
| committer | Jordan Cristiano <jordan.cristi@gmail.com> | 2013-06-22 23:49:16 -0400 |
| commit | fea1e3b698e75e29df7ccd2dbdd5717bf225147e (patch) | |
| tree | d087c958451a279c121adb4867f0b7595c1424a8 /Source/Core/AudioCommon/Src/WaveFile.cpp | |
| parent | 0c9c3c97372836e35c75a67758f8276879ea0ac4 (diff) | |
| parent | 8cf515359c2474c9b304b99cf07bd88aa2b0f766 (diff) | |
Merge branch 'audio_misc'
- audio no longer stops playing when dolphin is in the background with the dsound backend
- wav audio dumps now have the correct sizes instead of an arbitrarily large size
Diffstat (limited to 'Source/Core/AudioCommon/Src/WaveFile.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/Src/WaveFile.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/Core/AudioCommon/Src/WaveFile.cpp b/Source/Core/AudioCommon/Src/WaveFile.cpp index c6db942bc3..7eabbb3b48 100644 --- a/Source/Core/AudioCommon/Src/WaveFile.cpp +++ b/Source/Core/AudioCommon/Src/WaveFile.cpp @@ -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 // ----------------- |
