| 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 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_AUDIO_DECODER_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_AUDIO_DECODER_H_ |
| 12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_AUDIO_DECODER_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_AUDIO_DECODER_H_ |
| 13 | 13 |
| 14 #include <stdlib.h> // NULL | 14 #include <stdlib.h> // NULL |
| 15 | 15 |
| 16 #include "webrtc/base/constructormagic.h" | 16 #include "webrtc/base/constructormagic.h" |
| 17 #include "webrtc/modules/audio_coding/codecs/cng/include/webrtc_cng.h" | 17 #include "webrtc/modules/audio_coding/codecs/cng/webrtc_cng.h" |
| 18 #include "webrtc/typedefs.h" | 18 #include "webrtc/typedefs.h" |
| 19 | 19 |
| 20 namespace webrtc { | 20 namespace webrtc { |
| 21 | 21 |
| 22 // This is the interface class for decoders in NetEQ. Each codec type will have | 22 // This is the interface class for decoders in NetEQ. Each codec type will have |
| 23 // and implementation of this class. | 23 // and implementation of this class. |
| 24 class AudioDecoder { | 24 class AudioDecoder { |
| 25 public: | 25 public: |
| 26 enum SpeechType { | 26 enum SpeechType { |
| 27 kSpeech = 1, | 27 kSpeech = 1, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 int sample_rate_hz, | 114 int sample_rate_hz, |
| 115 int16_t* decoded, | 115 int16_t* decoded, |
| 116 SpeechType* speech_type); | 116 SpeechType* speech_type); |
| 117 | 117 |
| 118 private: | 118 private: |
| 119 RTC_DISALLOW_COPY_AND_ASSIGN(AudioDecoder); | 119 RTC_DISALLOW_COPY_AND_ASSIGN(AudioDecoder); |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 } // namespace webrtc | 122 } // namespace webrtc |
| 123 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_AUDIO_DECODER_H_ | 123 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_AUDIO_DECODER_H_ |
| OLD | NEW |