OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include "webrtc/voice_engine/coder.h" | 11 #include "webrtc/voice_engine/coder.h" |
12 | 12 |
| 13 #include "webrtc/api/audio_codecs/builtin_audio_decoder_factory.h" |
13 #include "webrtc/common_types.h" | 14 #include "webrtc/common_types.h" |
14 #include "webrtc/modules/audio_coding/codecs/audio_format_conversion.h" | 15 #include "webrtc/modules/audio_coding/codecs/audio_format_conversion.h" |
15 #include "webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.h" | |
16 #include "webrtc/modules/include/module_common_types.h" | 16 #include "webrtc/modules/include/module_common_types.h" |
17 | 17 |
18 namespace webrtc { | 18 namespace webrtc { |
19 namespace { | 19 namespace { |
20 AudioCodingModule::Config GetAcmConfig(uint32_t id) { | 20 AudioCodingModule::Config GetAcmConfig(uint32_t id) { |
21 AudioCodingModule::Config config; | 21 AudioCodingModule::Config config; |
22 // This class does not handle muted output. | 22 // This class does not handle muted output. |
23 config.neteq_config.enable_muted_state = false; | 23 config.neteq_config.enable_muted_state = false; |
24 config.id = id; | 24 config.id = id; |
25 config.decoder_factory = CreateBuiltinAudioDecoderFactory(); | 25 config.decoder_factory = CreateBuiltinAudioDecoderFactory(); |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 uint32_t /* time_stamp */, | 108 uint32_t /* time_stamp */, |
109 const uint8_t* payload_data, | 109 const uint8_t* payload_data, |
110 size_t payload_size, | 110 size_t payload_size, |
111 const RTPFragmentationHeader* /* fragmentation*/) { | 111 const RTPFragmentationHeader* /* fragmentation*/) { |
112 memcpy(encoded_data_, payload_data, sizeof(uint8_t) * payload_size); | 112 memcpy(encoded_data_, payload_data, sizeof(uint8_t) * payload_size); |
113 encoded_length_in_bytes_ = payload_size; | 113 encoded_length_in_bytes_ = payload_size; |
114 return 0; | 114 return 0; |
115 } | 115 } |
116 | 116 |
117 } // namespace webrtc | 117 } // namespace webrtc |
OLD | NEW |