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

Unified Diff: webrtc/modules/audio_mixer/audio_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/modules/audio_mixer/audio_mixer.h
diff --git a/webrtc/modules/audio_mixer/audio_mixer.h b/webrtc/modules/audio_mixer/audio_mixer.h
index 78cd4e5c79a2ddab2ea9f3bfff383a8f501ac74c..f422f935490b102056ca3169e53457935b77599f 100644
--- a/webrtc/modules/audio_mixer/audio_mixer.h
+++ b/webrtc/modules/audio_mixer/audio_mixer.h
@@ -11,6 +11,8 @@
#ifndef WEBRTC_MODULES_AUDIO_MIXER_AUDIO_MIXER_H_
#define WEBRTC_MODULES_AUDIO_MIXER_AUDIO_MIXER_H_
+#include <memory>
+
#include "webrtc/base/criticalsection.h"
#include "webrtc/common_audio/resampler/include/push_resampler.h"
#include "webrtc/common_types.h"
@@ -107,7 +109,7 @@ class AudioMixer : public FileCallback {
float _panLeft;
float _panRight;
int _mixingFrequencyHz;
- FileRecorder* _outputFileRecorderPtr;
+ std::unique_ptr<FileRecorder> _outputFileRecorderPtr;
bool _outputFileRecording;
};
« no previous file with comments | « no previous file | webrtc/modules/audio_mixer/audio_mixer.cc » ('j') | webrtc/modules/utility/include/file_player.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698