| 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 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 int AudioDecoder::PacketDurationRedundant(const uint8_t* encoded, | 75 int AudioDecoder::PacketDurationRedundant(const uint8_t* encoded, |
| 76 size_t encoded_len) const { | 76 size_t encoded_len) const { |
| 77 return kNotImplemented; | 77 return kNotImplemented; |
| 78 } | 78 } |
| 79 | 79 |
| 80 bool AudioDecoder::PacketHasFec(const uint8_t* encoded, | 80 bool AudioDecoder::PacketHasFec(const uint8_t* encoded, |
| 81 size_t encoded_len) const { | 81 size_t encoded_len) const { |
| 82 return false; | 82 return false; |
| 83 } | 83 } |
| 84 | 84 |
| 85 CNG_dec_inst* AudioDecoder::CngDecoderInstance() { | |
| 86 FATAL() << "Not a CNG decoder"; | |
| 87 return NULL; | |
| 88 } | |
| 89 | |
| 90 AudioDecoder::SpeechType AudioDecoder::ConvertSpeechType(int16_t type) { | 85 AudioDecoder::SpeechType AudioDecoder::ConvertSpeechType(int16_t type) { |
| 91 switch (type) { | 86 switch (type) { |
| 92 case 0: // TODO(hlundin): Both iSAC and Opus return 0 for speech. | 87 case 0: // TODO(hlundin): Both iSAC and Opus return 0 for speech. |
| 93 case 1: | 88 case 1: |
| 94 return kSpeech; | 89 return kSpeech; |
| 95 case 2: | 90 case 2: |
| 96 return kComfortNoise; | 91 return kComfortNoise; |
| 97 default: | 92 default: |
| 98 assert(false); | 93 assert(false); |
| 99 return kSpeech; | 94 return kSpeech; |
| 100 } | 95 } |
| 101 } | 96 } |
| 102 | 97 |
| 103 } // namespace webrtc | 98 } // namespace webrtc |
| OLD | NEW |