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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 // TODO(ossu): Don't use! It's only here to confirm that the decoder factory | 168 // TODO(ossu): Don't use! It's only here to confirm that the decoder factory |
169 // passed into AudioReceiveStream is the same as the one set when creating the | 169 // passed into AudioReceiveStream is the same as the one set when creating the |
170 // ADM. Once Channel creation is moved into Audio{Send,Receive}Stream this can | 170 // ADM. Once Channel creation is moved into Audio{Send,Receive}Stream this can |
171 // go. | 171 // go. |
172 const rtc::scoped_refptr<AudioDecoderFactory>& GetAudioDecoderFactory() const; | 172 const rtc::scoped_refptr<AudioDecoderFactory>& GetAudioDecoderFactory() const; |
173 | 173 |
174 void SetReceiveCodecs(const std::map<int, SdpAudioFormat>& codecs); | 174 void SetReceiveCodecs(const std::map<int, SdpAudioFormat>& codecs); |
175 | 175 |
176 // Send using this encoder, with this payload type. | 176 // Send using this encoder, with this payload type. |
177 bool SetEncoder(int payload_type, std::unique_ptr<AudioEncoder> encoder); | 177 bool SetEncoder(int payload_type, std::unique_ptr<AudioEncoder> encoder); |
| 178 void ModifyEncoder( |
| 179 rtc::FunctionView<void(std::unique_ptr<AudioEncoder>*)> modifier); |
178 | 180 |
179 // API methods | 181 // API methods |
180 | 182 |
181 // VoEBase | 183 // VoEBase |
182 int32_t StartPlayout(); | 184 int32_t StartPlayout(); |
183 int32_t StopPlayout(); | 185 int32_t StopPlayout(); |
184 int32_t StartSend(); | 186 int32_t StartSend(); |
185 void StopSend(); | 187 void StopSend(); |
186 int32_t RegisterVoiceEngineObserver(VoiceEngineObserver& observer); | 188 int32_t RegisterVoiceEngineObserver(VoiceEngineObserver& observer); |
187 int32_t DeRegisterVoiceEngineObserver(); | 189 int32_t DeRegisterVoiceEngineObserver(); |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 | 542 |
541 const bool use_twcc_plr_for_ana_; | 543 const bool use_twcc_plr_for_ana_; |
542 | 544 |
543 rtc::TaskQueue* encoder_queue_ = nullptr; | 545 rtc::TaskQueue* encoder_queue_ = nullptr; |
544 }; | 546 }; |
545 | 547 |
546 } // namespace voe | 548 } // namespace voe |
547 } // namespace webrtc | 549 } // namespace webrtc |
548 | 550 |
549 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ | 551 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ |
OLD | NEW |