OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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_MAIN_ACM2_CODEC_OWNER_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_CODEC_OWNER_H_ |
12 #define WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_CODEC_OWNER_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_CODEC_OWNER_H_ |
13 | 13 |
14 #include "webrtc/base/constructormagic.h" | 14 #include "webrtc/base/constructormagic.h" |
15 #include "webrtc/base/scoped_ptr.h" | 15 #include "webrtc/base/scoped_ptr.h" |
16 #include "webrtc/common_types.h" | 16 #include "webrtc/common_types.h" |
17 #include "webrtc/modules/audio_coding/codecs/audio_encoder.h" | 17 #include "webrtc/modules/audio_coding/codecs/audio_encoder.h" |
18 #include "webrtc/modules/audio_coding/codecs/isac/main/interface/audio_encoder_i
sac.h" | 18 #include "webrtc/modules/audio_coding/codecs/audio_decoder.h" |
19 #include "webrtc/modules/audio_coding/main/interface/audio_coding_module_typedef
s.h" | 19 #include "webrtc/modules/audio_coding/main/interface/audio_coding_module_typedef
s.h" |
20 | 20 |
| 21 #if defined(WEBRTC_CODEC_ISAC) || defined(WEBRTC_CODEC_ISACFX) |
| 22 #include "webrtc/modules/audio_coding/codecs/isac/locked_bandwidth_info.h" |
| 23 #else |
| 24 // Dummy implementation, for when we don't have iSAC. |
21 namespace webrtc { | 25 namespace webrtc { |
| 26 class LockedIsacBandwidthInfo {}; |
| 27 } |
| 28 #endif |
22 | 29 |
23 class AudioDecoder; | 30 namespace webrtc { |
24 | |
25 namespace acm2 { | 31 namespace acm2 { |
26 | 32 |
27 class CodecOwner { | 33 class CodecOwner { |
28 public: | 34 public: |
29 CodecOwner(); | 35 CodecOwner(); |
30 ~CodecOwner(); | 36 ~CodecOwner(); |
31 | 37 |
32 // Start using the specified encoder. Returns false on error. | 38 // Start using the specified encoder. Returns false on error. |
33 // TODO(kwiberg): Don't handle errors here (bug 5033) | 39 // TODO(kwiberg): Don't handle errors here (bug 5033) |
34 bool SetEncoders(const CodecInst& speech_inst, | 40 bool SetEncoders(const CodecInst& speech_inst, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // are active. | 77 // are active. |
72 rtc::scoped_ptr<AudioEncoder> cng_encoder_; | 78 rtc::scoped_ptr<AudioEncoder> cng_encoder_; |
73 rtc::scoped_ptr<AudioEncoder> red_encoder_; | 79 rtc::scoped_ptr<AudioEncoder> red_encoder_; |
74 | 80 |
75 RTC_DISALLOW_COPY_AND_ASSIGN(CodecOwner); | 81 RTC_DISALLOW_COPY_AND_ASSIGN(CodecOwner); |
76 }; | 82 }; |
77 | 83 |
78 } // namespace acm2 | 84 } // namespace acm2 |
79 } // namespace webrtc | 85 } // namespace webrtc |
80 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_CODEC_OWNER_H_ | 86 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_CODEC_OWNER_H_ |
OLD | NEW |