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_AUDIO_DECODER_IMPL_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_AUDIO_DECODER_IMPL_H_ |
12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_AUDIO_DECODER_IMPL_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_AUDIO_DECODER_IMPL_H_ |
13 | 13 |
14 #include <assert.h> | 14 #include <assert.h> |
15 | 15 |
16 #include "webrtc/engine_configurations.h" | 16 #include "webrtc/engine_configurations.h" |
17 #include "webrtc/base/constructormagic.h" | 17 #include "webrtc/base/constructormagic.h" |
18 #include "webrtc/modules/audio_coding/codecs/audio_decoder.h" | 18 #include "webrtc/modules/audio_coding/codecs/audio_decoder.h" |
19 #include "webrtc/modules/audio_coding/codecs/cng/webrtc_cng.h" | 19 #include "webrtc/modules/audio_coding/codecs/cng/webrtc_cng.h" |
20 #ifdef WEBRTC_CODEC_G722 | 20 #ifdef WEBRTC_CODEC_G722 |
21 #include "webrtc/modules/audio_coding/codecs/g722/g722_interface.h" | 21 #include "webrtc/modules/audio_coding/codecs/g722/g722_interface.h" |
22 #endif | 22 #endif |
23 #include "webrtc/modules/audio_coding/main/acm2/rent_a_codec.h" | 23 #include "webrtc/modules/audio_coding/acm2/rent_a_codec.h" |
24 #include "webrtc/typedefs.h" | 24 #include "webrtc/typedefs.h" |
25 | 25 |
26 namespace webrtc { | 26 namespace webrtc { |
27 | 27 |
28 // AudioDecoderCng is a special type of AudioDecoder. It inherits from | 28 // AudioDecoderCng is a special type of AudioDecoder. It inherits from |
29 // AudioDecoder just to fit in the DecoderDatabase. None of the class methods | 29 // AudioDecoder just to fit in the DecoderDatabase. None of the class methods |
30 // should be used, except constructor, destructor, and accessors. | 30 // should be used, except constructor, destructor, and accessors. |
31 // TODO(hlundin): Consider the possibility to create a super-class to | 31 // TODO(hlundin): Consider the possibility to create a super-class to |
32 // AudioDecoder that is stored in DecoderDatabase. Then AudioDecoder and a | 32 // AudioDecoder that is stored in DecoderDatabase. Then AudioDecoder and a |
33 // specific CngDecoder class could both inherit from that class. | 33 // specific CngDecoder class could both inherit from that class. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // Returns the sample rate for |codec_type|. | 65 // Returns the sample rate for |codec_type|. |
66 int CodecSampleRateHz(NetEqDecoder codec_type); | 66 int CodecSampleRateHz(NetEqDecoder codec_type); |
67 | 67 |
68 // Creates an AudioDecoder object of type |codec_type|. Returns NULL for for | 68 // Creates an AudioDecoder object of type |codec_type|. Returns NULL for for |
69 // unsupported codecs, and when creating an AudioDecoder is not applicable | 69 // unsupported codecs, and when creating an AudioDecoder is not applicable |
70 // (e.g., for RED and DTMF/AVT types). | 70 // (e.g., for RED and DTMF/AVT types). |
71 AudioDecoder* CreateAudioDecoder(NetEqDecoder codec_type); | 71 AudioDecoder* CreateAudioDecoder(NetEqDecoder codec_type); |
72 | 72 |
73 } // namespace webrtc | 73 } // namespace webrtc |
74 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_AUDIO_DECODER_IMPL_H_ | 74 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_AUDIO_DECODER_IMPL_H_ |
OLD | NEW |