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 19 matching lines...) Expand all Loading... |
30 kInvalidSampleRate = -3, | 30 kInvalidSampleRate = -3, |
31 kDecoderExists = -4, | 31 kDecoderExists = -4, |
32 kDecoderNotFound = -5, | 32 kDecoderNotFound = -5, |
33 kInvalidPointer = -6 | 33 kInvalidPointer = -6 |
34 }; | 34 }; |
35 | 35 |
36 // Struct used to store decoder info in the database. | 36 // Struct used to store decoder info in the database. |
37 struct DecoderInfo { | 37 struct DecoderInfo { |
38 // Constructors. | 38 // Constructors. |
39 DecoderInfo() | 39 DecoderInfo() |
40 : codec_type(kDecoderArbitrary), | 40 : codec_type(NetEqDecoder::kDecoderArbitrary), |
41 fs_hz(8000), | 41 fs_hz(8000), |
42 decoder(NULL), | 42 decoder(NULL), |
43 external(false) { | 43 external(false) {} |
44 } | |
45 DecoderInfo(NetEqDecoder ct, int fs, AudioDecoder* dec, bool ext) | 44 DecoderInfo(NetEqDecoder ct, int fs, AudioDecoder* dec, bool ext) |
46 : codec_type(ct), | 45 : codec_type(ct), |
47 fs_hz(fs), | 46 fs_hz(fs), |
48 decoder(dec), | 47 decoder(dec), |
49 external(ext) { | 48 external(ext) { |
50 } | 49 } |
51 // Destructor. (Defined in decoder_database.cc.) | 50 // Destructor. (Defined in decoder_database.cc.) |
52 ~DecoderInfo(); | 51 ~DecoderInfo(); |
53 | 52 |
54 NetEqDecoder codec_type; | 53 NetEqDecoder codec_type; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 144 |
146 DecoderMap decoders_; | 145 DecoderMap decoders_; |
147 int active_decoder_; | 146 int active_decoder_; |
148 int active_cng_decoder_; | 147 int active_cng_decoder_; |
149 | 148 |
150 RTC_DISALLOW_COPY_AND_ASSIGN(DecoderDatabase); | 149 RTC_DISALLOW_COPY_AND_ASSIGN(DecoderDatabase); |
151 }; | 150 }; |
152 | 151 |
153 } // namespace webrtc | 152 } // namespace webrtc |
154 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DECODER_DATABASE_H_ | 153 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DECODER_DATABASE_H_ |
OLD | NEW |