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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 // Returns the current active decoder, or NULL if no active decoder exists. | 135 // Returns the current active decoder, or NULL if no active decoder exists. |
136 virtual AudioDecoder* GetActiveDecoder(); | 136 virtual AudioDecoder* GetActiveDecoder(); |
137 | 137 |
138 // Sets the active comfort noise decoder to be |rtp_payload_type|. If this | 138 // Sets the active comfort noise decoder to be |rtp_payload_type|. If this |
139 // call results in a change of active comfort noise decoder, the previous | 139 // call results in a change of active comfort noise decoder, the previous |
140 // active decoder's AudioDecoder object is deleted. | 140 // active decoder's AudioDecoder object is deleted. |
141 virtual int SetActiveCngDecoder(uint8_t rtp_payload_type); | 141 virtual int SetActiveCngDecoder(uint8_t rtp_payload_type); |
142 | 142 |
143 // Returns the current active comfort noise decoder, or NULL if no active | 143 // Returns the current active comfort noise decoder, or NULL if no active |
144 // comfort noise decoder exists. | 144 // comfort noise decoder exists. |
145 virtual AudioDecoder* GetActiveCngDecoder(); | 145 virtual CNG_dec_inst* GetActiveCngDecoder(); |
146 | 146 |
147 // Returns kOK if all packets in |packet_list| carry payload types that are | 147 // Returns kOK if all packets in |packet_list| carry payload types that are |
148 // registered in the database. Otherwise, returns kDecoderNotFound. | 148 // registered in the database. Otherwise, returns kDecoderNotFound. |
149 virtual int CheckPayloadTypes(const PacketList& packet_list) const; | 149 virtual int CheckPayloadTypes(const PacketList& packet_list) const; |
150 | 150 |
151 private: | 151 private: |
152 typedef std::map<uint8_t, DecoderInfo> DecoderMap; | 152 typedef std::map<uint8_t, DecoderInfo> DecoderMap; |
153 | 153 |
154 DecoderMap decoders_; | 154 DecoderMap decoders_; |
155 int active_decoder_; | 155 int active_decoder_; |
156 int active_cng_decoder_; | 156 int active_cng_decoder_; |
| 157 CNG_dec_inst* active_cng_dec_inst_; |
157 | 158 |
158 RTC_DISALLOW_COPY_AND_ASSIGN(DecoderDatabase); | 159 RTC_DISALLOW_COPY_AND_ASSIGN(DecoderDatabase); |
159 }; | 160 }; |
160 | 161 |
161 } // namespace webrtc | 162 } // namespace webrtc |
162 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DECODER_DATABASE_H_ | 163 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DECODER_DATABASE_H_ |
OLD | NEW |