OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
109 size_t AudioEncoderPcmA::EncodeCall(const int16_t* audio, | 109 size_t AudioEncoderPcmA::EncodeCall(const int16_t* audio, |
110 size_t input_len, | 110 size_t input_len, |
111 uint8_t* encoded) { | 111 uint8_t* encoded) { |
112 return WebRtcG711_EncodeA(audio, input_len, encoded); | 112 return WebRtcG711_EncodeA(audio, input_len, encoded); |
113 } | 113 } |
114 | 114 |
115 size_t AudioEncoderPcmA::BytesPerSample() const { | 115 size_t AudioEncoderPcmA::BytesPerSample() const { |
116 return 1; | 116 return 1; |
117 } | 117 } |
118 | 118 |
119 const char* AudioEncoderPcmA::GetCodecName() const { | |
120 return "g711"; | |
hlundin-webrtc
2016/05/11 13:03:55
g711A, or rather PCMA, per my earlier comments.
aleloi
2016/05/11 14:10:49
Is this one of the codecs we are interested in hav
hlundin-webrtc
2016/05/12 12:23:39
Yes.
| |
121 } | |
122 | |
119 AudioEncoderPcmU::AudioEncoderPcmU(const CodecInst& codec_inst) | 123 AudioEncoderPcmU::AudioEncoderPcmU(const CodecInst& codec_inst) |
120 : AudioEncoderPcmU(CreateConfig<AudioEncoderPcmU>(codec_inst)) {} | 124 : AudioEncoderPcmU(CreateConfig<AudioEncoderPcmU>(codec_inst)) {} |
121 | 125 |
122 size_t AudioEncoderPcmU::EncodeCall(const int16_t* audio, | 126 size_t AudioEncoderPcmU::EncodeCall(const int16_t* audio, |
123 size_t input_len, | 127 size_t input_len, |
124 uint8_t* encoded) { | 128 uint8_t* encoded) { |
125 return WebRtcG711_EncodeU(audio, input_len, encoded); | 129 return WebRtcG711_EncodeU(audio, input_len, encoded); |
126 } | 130 } |
127 | 131 |
128 size_t AudioEncoderPcmU::BytesPerSample() const { | 132 size_t AudioEncoderPcmU::BytesPerSample() const { |
129 return 1; | 133 return 1; |
130 } | 134 } |
131 | 135 |
136 const char* AudioEncoderPcmU::GetCodecName() const { | |
137 return "g711"; | |
hlundin-webrtc
2016/05/11 13:03:55
g711u, or rather PCMU.
aleloi
2016/05/11 14:10:49
Same question as for g711A
hlundin-webrtc
2016/05/12 12:23:39
Yes.
| |
138 } | |
139 | |
132 } // namespace webrtc | 140 } // namespace webrtc |
OLD | NEW |