Stop using ACM factory in VoiceEngine
The factory injection was introduces in order to facilitate switching between ACM1 and ACM2. Now, ACM1 is being deprecated, and this switching mechanism is no longer needed. BUG=2996 R=henrika@webrtc.org Review URL: https://webrtc-codereview.appspot.com/12259005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5954 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
d144bb6812
commit
139706ec0b
@ -836,7 +836,7 @@ Channel::Channel(int32_t channelId,
|
||||
VoEModuleId(instanceId, channelId), Clock::GetRealTimeClock(), this,
|
||||
this, this, rtp_payload_registry_.get())),
|
||||
telephone_event_handler_(rtp_receiver_->GetTelephoneEventHandler()),
|
||||
audio_coding_(config.Get<AudioCodingModuleFactory>().Create(
|
||||
audio_coding_(AudioCodingModule::Create(
|
||||
VoEModuleId(instanceId, channelId))),
|
||||
_rtpDumpIn(*RtpDump::CreateRtpDump()),
|
||||
_rtpDumpOut(*RtpDump::CreateRtpDump()),
|
||||
|
@ -86,8 +86,6 @@ int VoiceEngineImpl::Release() {
|
||||
|
||||
VoiceEngine* VoiceEngine::Create() {
|
||||
Config* config = new Config();
|
||||
config->Set<AudioCodingModuleFactory>(new NewAudioCodingModuleFactory());
|
||||
|
||||
return GetVoiceEngine(config, true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user