Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(619)

Unified Diff: webrtc/voice_engine/output_mixer.h

Issue 2049683003: FileRecorder + FilePlayer: Let Create functions return unique_ptr (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@remove3
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/voice_engine/output_mixer.h
diff --git a/webrtc/voice_engine/output_mixer.h b/webrtc/voice_engine/output_mixer.h
index ae2f53fdb9d7d8197b89c25b0c2a554e8fcfcd93..cc8dddfbfceacd29dfb8a987f9ff9d8edf7a7b2e 100644
--- a/webrtc/voice_engine/output_mixer.h
+++ b/webrtc/voice_engine/output_mixer.h
@@ -11,6 +11,8 @@
#ifndef WEBRTC_VOICE_ENGINE_OUTPUT_MIXER_H_
#define WEBRTC_VOICE_ENGINE_OUTPUT_MIXER_H_
+#include <memory>
+
#include "webrtc/base/criticalsection.h"
#include "webrtc/common_audio/resampler/include/push_resampler.h"
#include "webrtc/common_types.h"
@@ -104,7 +106,7 @@ private:
AudioProcessing* _audioProcessingModulePtr;
rtc::CriticalSection _callbackCritSect;
- // protect the _outputFileRecorderPtr and _outputFileRecording
+ // Protects output_file_recorder_ and _outputFileRecording.
rtc::CriticalSection _fileCritSect;
AudioConferenceMixer& _mixerModule;
AudioFrame _audioFrame;
@@ -119,7 +121,7 @@ private:
float _panLeft;
float _panRight;
int _mixingFrequencyHz;
- FileRecorder* _outputFileRecorderPtr;
+ std::unique_ptr<FileRecorder> output_file_recorder_;
ossu 2016/08/17 11:09:06 Should this have some sort of annotation if it's b
kwiberg-webrtc 2016/08/17 12:27:39 Yes.
bool _outputFileRecording;
};

Powered by Google App Engine
This is Rietveld 408576698