| 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 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 AudioSendStream(const webrtc::AudioSendStream::Config& config, | 32 AudioSendStream(const webrtc::AudioSendStream::Config& config, |
| 33 const rtc::scoped_refptr<webrtc::AudioState>& audio_state, | 33 const rtc::scoped_refptr<webrtc::AudioState>& audio_state, |
| 34 CongestionController* congestion_controller); | 34 CongestionController* congestion_controller); |
| 35 ~AudioSendStream() override; | 35 ~AudioSendStream() override; |
| 36 | 36 |
| 37 // webrtc::AudioSendStream implementation. | 37 // webrtc::AudioSendStream implementation. |
| 38 void Start() override; | 38 void Start() override; |
| 39 void Stop() override; | 39 void Stop() override; |
| 40 bool SendTelephoneEvent(int payload_type, int event, | 40 bool SendTelephoneEvent(int payload_type, int event, |
| 41 int duration_ms) override; | 41 int duration_ms) override; |
| 42 void SetMuted(bool muted) override; |
| 42 webrtc::AudioSendStream::Stats GetStats() const override; | 43 webrtc::AudioSendStream::Stats GetStats() const override; |
| 43 | 44 |
| 44 void SignalNetworkState(NetworkState state); | 45 void SignalNetworkState(NetworkState state); |
| 45 bool DeliverRtcp(const uint8_t* packet, size_t length); | 46 bool DeliverRtcp(const uint8_t* packet, size_t length); |
| 46 const webrtc::AudioSendStream::Config& config() const; | 47 const webrtc::AudioSendStream::Config& config() const; |
| 47 | 48 |
| 48 private: | 49 private: |
| 49 VoiceEngine* voice_engine() const; | 50 VoiceEngine* voice_engine() const; |
| 50 | 51 |
| 51 rtc::ThreadChecker thread_checker_; | 52 rtc::ThreadChecker thread_checker_; |
| 52 const webrtc::AudioSendStream::Config config_; | 53 const webrtc::AudioSendStream::Config config_; |
| 53 rtc::scoped_refptr<webrtc::AudioState> audio_state_; | 54 rtc::scoped_refptr<webrtc::AudioState> audio_state_; |
| 54 std::unique_ptr<voe::ChannelProxy> channel_proxy_; | 55 std::unique_ptr<voe::ChannelProxy> channel_proxy_; |
| 55 | 56 |
| 56 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioSendStream); | 57 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioSendStream); |
| 57 }; | 58 }; |
| 58 } // namespace internal | 59 } // namespace internal |
| 59 } // namespace webrtc | 60 } // namespace webrtc |
| 60 | 61 |
| 61 #endif // WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_ | 62 #endif // WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_ |
| OLD | NEW |