| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 43                   const rtc::scoped_refptr<webrtc::AudioState>& audio_state, | 43                   const rtc::scoped_refptr<webrtc::AudioState>& audio_state, | 
| 44                   rtc::TaskQueue* worker_queue, | 44                   rtc::TaskQueue* worker_queue, | 
| 45                   RtpTransportControllerSendInterface* transport, | 45                   RtpTransportControllerSendInterface* transport, | 
| 46                   BitrateAllocator* bitrate_allocator, | 46                   BitrateAllocator* bitrate_allocator, | 
| 47                   RtcEventLog* event_log, | 47                   RtcEventLog* event_log, | 
| 48                   RtcpRttStats* rtcp_rtt_stats, | 48                   RtcpRttStats* rtcp_rtt_stats, | 
| 49                   const rtc::Optional<RtpState>& suspended_rtp_state); | 49                   const rtc::Optional<RtpState>& suspended_rtp_state); | 
| 50   ~AudioSendStream() override; | 50   ~AudioSendStream() override; | 
| 51 | 51 | 
| 52   // webrtc::AudioSendStream implementation. | 52   // webrtc::AudioSendStream implementation. | 
|  | 53   const webrtc::AudioSendStream::Config& GetConfig() const override; | 
| 53   void Reconfigure(const webrtc::AudioSendStream::Config& config) override; | 54   void Reconfigure(const webrtc::AudioSendStream::Config& config) override; | 
| 54 |  | 
| 55   void Start() override; | 55   void Start() override; | 
| 56   void Stop() override; | 56   void Stop() override; | 
| 57   bool SendTelephoneEvent(int payload_type, int payload_frequency, int event, | 57   bool SendTelephoneEvent(int payload_type, int payload_frequency, int event, | 
| 58                           int duration_ms) override; | 58                           int duration_ms) override; | 
| 59   void SetMuted(bool muted) override; | 59   void SetMuted(bool muted) override; | 
| 60   webrtc::AudioSendStream::Stats GetStats() const override; | 60   webrtc::AudioSendStream::Stats GetStats() const override; | 
| 61 | 61 | 
| 62   void SignalNetworkState(NetworkState state); | 62   void SignalNetworkState(NetworkState state); | 
| 63   bool DeliverRtcp(const uint8_t* packet, size_t length); | 63   bool DeliverRtcp(const uint8_t* packet, size_t length); | 
| 64 | 64 | 
| 65   // Implements BitrateAllocatorObserver. | 65   // Implements BitrateAllocatorObserver. | 
| 66   uint32_t OnBitrateUpdated(uint32_t bitrate_bps, | 66   uint32_t OnBitrateUpdated(uint32_t bitrate_bps, | 
| 67                             uint8_t fraction_loss, | 67                             uint8_t fraction_loss, | 
| 68                             int64_t rtt, | 68                             int64_t rtt, | 
| 69                             int64_t bwe_period_ms) override; | 69                             int64_t bwe_period_ms) override; | 
| 70 | 70 | 
| 71   // From PacketFeedbackObserver. | 71   // From PacketFeedbackObserver. | 
| 72   void OnPacketAdded(uint32_t ssrc, uint16_t seq_num) override; | 72   void OnPacketAdded(uint32_t ssrc, uint16_t seq_num) override; | 
| 73   void OnPacketFeedbackVector( | 73   void OnPacketFeedbackVector( | 
| 74       const std::vector<PacketFeedback>& packet_feedback_vector) override; | 74       const std::vector<PacketFeedback>& packet_feedback_vector) override; | 
| 75 | 75 | 
| 76   const webrtc::AudioSendStream::Config& config() const; |  | 
| 77   void SetTransportOverhead(int transport_overhead_per_packet); | 76   void SetTransportOverhead(int transport_overhead_per_packet); | 
| 78 | 77 | 
| 79   RtpState GetRtpState() const; | 78   RtpState GetRtpState() const; | 
| 80   const TimeInterval& GetActiveLifetime() const; | 79   const TimeInterval& GetActiveLifetime() const; | 
| 81 | 80 | 
| 82  private: | 81  private: | 
| 83   class TimedTransport; | 82   class TimedTransport; | 
| 84 | 83 | 
| 85   VoiceEngine* voice_engine() const; | 84   VoiceEngine* voice_engine() const; | 
| 86 | 85 | 
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 123 | 122 | 
| 124   std::unique_ptr<TimedTransport> timed_send_transport_adapter_; | 123   std::unique_ptr<TimedTransport> timed_send_transport_adapter_; | 
| 125   TimeInterval active_lifetime_; | 124   TimeInterval active_lifetime_; | 
| 126 | 125 | 
| 127   RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioSendStream); | 126   RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioSendStream); | 
| 128 }; | 127 }; | 
| 129 }  // namespace internal | 128 }  // namespace internal | 
| 130 }  // namespace webrtc | 129 }  // namespace webrtc | 
| 131 | 130 | 
| 132 #endif  // WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_ | 131 #endif  // WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_ | 
| OLD | NEW | 
|---|