Index: webrtc/media/engine/webrtcvoiceengine.h |
diff --git a/webrtc/media/engine/webrtcvoiceengine.h b/webrtc/media/engine/webrtcvoiceengine.h |
index 4d71c893340ca54644ba739c047e1e629cef9a37..20b975cd7604367cdd0085754685f7a29a256527 100644 |
--- a/webrtc/media/engine/webrtcvoiceengine.h |
+++ b/webrtc/media/engine/webrtcvoiceengine.h |
@@ -29,6 +29,7 @@ |
#include "webrtc/media/engine/apm_helpers.h" |
#include "webrtc/media/engine/webrtccommon.h" |
#include "webrtc/media/engine/webrtcvoe.h" |
+#include "webrtc/modules/audio_coding/codecs/audio_encoder_factory.h" |
#include "webrtc/modules/audio_processing/include/audio_processing.h" |
#include "webrtc/pc/channel.h" |
@@ -51,9 +52,6 @@ class WebRtcVoiceMediaChannel; |
class WebRtcVoiceEngine final : public webrtc::TraceCallback { |
friend class WebRtcVoiceMediaChannel; |
public: |
- // Exposed for the WVoE/MC unit test. |
- static bool ToCodecInst(const AudioCodec& in, webrtc::CodecInst* out); |
- |
WebRtcVoiceEngine( |
webrtc::AudioDeviceModule* adm, |
const rtc::scoped_refptr<webrtc::AudioDecoderFactory>& decoder_factory, |
@@ -114,13 +112,15 @@ class WebRtcVoiceEngine final : public webrtc::TraceCallback { |
webrtc::AudioProcessing* apm(); |
webrtc::voe::TransmitMixer* transmit_mixer(); |
- AudioCodecs CollectRecvCodecs() const; |
+ AudioCodecs CollectCodecs( |
+ const std::vector<webrtc::AudioCodecSpec>& specs) const; |
rtc::ThreadChecker signal_thread_checker_; |
rtc::ThreadChecker worker_thread_checker_; |
// The audio device manager. |
rtc::scoped_refptr<webrtc::AudioDeviceModule> adm_; |
+ rtc::scoped_refptr<webrtc::AudioEncoderFactory> encoder_factory_; |
rtc::scoped_refptr<webrtc::AudioDecoderFactory> decoder_factory_; |
// Reference to the APM, owned by VoE. |
webrtc::AudioProcessing* apm_ = nullptr; |
@@ -291,7 +291,8 @@ class WebRtcVoiceMediaChannel final : public VoiceMediaChannel, |
std::map<uint32_t, WebRtcAudioReceiveStream*> recv_streams_; |
std::vector<webrtc::RtpExtension> recv_rtp_extensions_; |
- webrtc::AudioSendStream::Config::SendCodecSpec send_codec_spec_; |
+ rtc::Optional<webrtc::AudioSendStream::Config::SendCodecSpec> |
+ send_codec_spec_; |
RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel); |
}; |