From 27cecf46a899de1317afbba2e1fc329ef9e8f24b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 6 Sep 2014 11:21:44 -0400 Subject: [PATCH] AudioCommon: Make WaveFileWriter inherit NonCopyable --- Source/Core/AudioCommon/WaveFile.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Source/Core/AudioCommon/WaveFile.h b/Source/Core/AudioCommon/WaveFile.h index a9eafd24f7..1136e1394a 100644 --- a/Source/Core/AudioCommon/WaveFile.h +++ b/Source/Core/AudioCommon/WaveFile.h @@ -15,19 +15,11 @@ #pragma once #include +#include "Common/Common.h" #include "Common/FileUtil.h" -class WaveFileWriter +class WaveFileWriter : NonCopyable { - File::IOFile file; - bool skip_silence; - u32 audio_size; - short *conv_buffer; - void Write(u32 value); - void Write4(const char *ptr); - - WaveFileWriter& operator=(const WaveFileWriter&)/* = delete*/; - public: WaveFileWriter(); ~WaveFileWriter(); @@ -40,4 +32,12 @@ public: void AddStereoSamples(const short *sample_data, u32 count); void AddStereoSamplesBE(const short *sample_data, u32 count); // big endian u32 GetAudioSize() const { return audio_size; } + +private: + File::IOFile file; + bool skip_silence; + u32 audio_size; + short* conv_buffer; + void Write(u32 value); + void Write4(const char* ptr); };