Chromium Code Reviews| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 163 | 163 |
| 164 // TODO(ossu): Don't use! It's only here to confirm that the decoder factory | 164 // TODO(ossu): Don't use! It's only here to confirm that the decoder factory |
| 165 // passed into AudioReceiveStream is the same as the one set when creating the | 165 // passed into AudioReceiveStream is the same as the one set when creating the |
| 166 // ADM. Once Channel creation is moved into Audio{Send,Receive}Stream this can | 166 // ADM. Once Channel creation is moved into Audio{Send,Receive}Stream this can |
| 167 // go. | 167 // go. |
| 168 const rtc::scoped_refptr<AudioDecoderFactory>& GetAudioDecoderFactory() const; | 168 const rtc::scoped_refptr<AudioDecoderFactory>& GetAudioDecoderFactory() const; |
| 169 | 169 |
| 170 // Send using this encoder, with this payload type. | 170 // Send using this encoder, with this payload type. |
| 171 virtual bool SetEncoder(int payload_type, | 171 virtual bool SetEncoder(int payload_type, |
| 172 std::unique_ptr<AudioEncoder> encoder); | 172 std::unique_ptr<AudioEncoder> encoder); |
| 173 virtual void ModifyEncoder( | |
|
ossu
2017/04/04 15:36:38
Needed to plumb this all the way out. Once we get
| |
| 174 rtc::FunctionView<void(std::unique_ptr<AudioEncoder>*)> modifier); | |
| 173 | 175 |
| 174 // API methods | 176 // API methods |
| 175 | 177 |
| 176 // VoEBase | 178 // VoEBase |
| 177 int32_t StartPlayout(); | 179 int32_t StartPlayout(); |
| 178 int32_t StopPlayout(); | 180 int32_t StopPlayout(); |
| 179 int32_t StartSend(); | 181 int32_t StartSend(); |
| 180 int32_t StopSend(); | 182 int32_t StopSend(); |
| 181 int32_t RegisterVoiceEngineObserver(VoiceEngineObserver& observer); | 183 int32_t RegisterVoiceEngineObserver(VoiceEngineObserver& observer); |
| 182 int32_t DeRegisterVoiceEngineObserver(); | 184 int32_t DeRegisterVoiceEngineObserver(); |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 508 std::unique_ptr<RateLimiter> retransmission_rate_limiter_; | 510 std::unique_ptr<RateLimiter> retransmission_rate_limiter_; |
| 509 | 511 |
| 510 // TODO(ossu): Remove once GetAudioDecoderFactory() is no longer needed. | 512 // TODO(ossu): Remove once GetAudioDecoderFactory() is no longer needed. |
| 511 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; | 513 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; |
| 512 }; | 514 }; |
| 513 | 515 |
| 514 } // namespace voe | 516 } // namespace voe |
| 515 } // namespace webrtc | 517 } // namespace webrtc |
| 516 | 518 |
| 517 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ | 519 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ |
| OLD | NEW |