Moved injection of AudioDecoderFactory into voe::Channel.
Channel's API remains unchanged, but the creation of a BuiltinAudioDecoderFactory is now in Channel. The next step would be to amend Channel's API (through CreateChannel, I believe) to allow an AudioDecoderFactory to be sent along. BUG=webrtc:5805 Review-Url: https://codereview.webrtc.org/1992763002 Cr-Commit-Position: refs/heads/master@{#12893}
This commit is contained in:
@ -9,6 +9,7 @@
|
||||
*/
|
||||
|
||||
#include "webrtc/common_types.h"
|
||||
#include "webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.h"
|
||||
#include "webrtc/modules/include/module_common_types.h"
|
||||
#include "webrtc/modules/utility/source/coder.h"
|
||||
|
||||
@ -19,6 +20,7 @@ AudioCodingModule::Config GetAcmConfig(uint32_t id) {
|
||||
// This class does not handle muted output.
|
||||
config.neteq_config.enable_muted_state = false;
|
||||
config.id = id;
|
||||
config.decoder_factory = CreateBuiltinAudioDecoderFactory();
|
||||
return config;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user