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

Unified Diff: webrtc/voice_engine/include/voe_base.h

Issue 1993783002: Moved CreateBuiltinDecoderFactory out to VoEBaseImpl. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@audio-decoder-factory-injections-2
Patch Set: Created 4 years, 7 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/include/voe_base.h
diff --git a/webrtc/voice_engine/include/voe_base.h b/webrtc/voice_engine/include/voe_base.h
index 4001b945774892123a60f260300b301579f906d2..26e73f80595d212f98a4eed69b45ec298c1b2804 100644
--- a/webrtc/voice_engine/include/voe_base.h
+++ b/webrtc/voice_engine/include/voe_base.h
@@ -34,6 +34,10 @@
#ifndef WEBRTC_VOICE_ENGINE_VOE_BASE_H
#define WEBRTC_VOICE_ENGINE_VOE_BASE_H
+#include <memory>
ossu 2016/05/18 16:12:27 This one isn't necessary.
kwiberg-webrtc 2016/05/25 09:19:16 Acknowledged.
+
+#include "webrtc/base/scoped_ref_ptr.h"
+#include "webrtc/modules/audio_coding/codecs/audio_decoder_factory.h"
#include "webrtc/common_types.h"
namespace webrtc {
@@ -123,11 +127,14 @@ class WEBRTC_DLLEXPORT VoEBase {
// functionality in a separate (reference counted) module.
// - The AudioProcessing module handles capture-side processing. VoiceEngine
// takes ownership of this object.
+ // - An AudioDecoderFactory - used to create audio decoders.
// If NULL is passed for any of these, VoiceEngine will create its own.
// Returns -1 in case of an error, 0 otherwise.
// TODO(ajm): Remove default NULLs.
virtual int Init(AudioDeviceModule* external_adm = NULL,
- AudioProcessing* audioproc = NULL) = 0;
+ AudioProcessing* audioproc = NULL,
+ const rtc::scoped_refptr<AudioDecoderFactory>&
+ decoder_factory = nullptr) = 0;
kwiberg-webrtc 2016/05/25 09:19:16 Not your fault, but ew! Default values for argumen
ossu 2016/05/26 12:09:53 Yeah. :/ Fortunately, they're all "no-value" defau
// Returns NULL before Init() is called.
virtual AudioProcessing* audio_processing() = 0;

Powered by Google App Engine
This is Rietveld 408576698