Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: webrtc/audio/audio_send_stream.h

Issue 2987763003: Make ~webrtc::AudioSendStream public, and s/config()/GetConfig(), as well as make public. (Closed)
Patch Set: Discussed offline with Fredrick; implement. Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void Reconfigure(const webrtc::AudioSendStream::Config& config) override; 53 void Reconfigure(const webrtc::AudioSendStream::Config& config) override;
54 const webrtc::AudioSendStream::Config& GetConfig() const override;
54 55
55 void Start() override; 56 void Start() override;
56 void Stop() override; 57 void Stop() override;
57 bool SendTelephoneEvent(int payload_type, int payload_frequency, int event, 58 bool SendTelephoneEvent(int payload_type, int payload_frequency, int event,
58 int duration_ms) override; 59 int duration_ms) override;
59 void SetMuted(bool muted) override; 60 void SetMuted(bool muted) override;
60 webrtc::AudioSendStream::Stats GetStats() const override; 61 webrtc::AudioSendStream::Stats GetStats() const override;
61 62
62 void SignalNetworkState(NetworkState state); 63 void SignalNetworkState(NetworkState state);
63 bool DeliverRtcp(const uint8_t* packet, size_t length); 64 bool DeliverRtcp(const uint8_t* packet, size_t length);
64 65
65 // Implements BitrateAllocatorObserver. 66 // Implements BitrateAllocatorObserver.
66 uint32_t OnBitrateUpdated(uint32_t bitrate_bps, 67 uint32_t OnBitrateUpdated(uint32_t bitrate_bps,
67 uint8_t fraction_loss, 68 uint8_t fraction_loss,
68 int64_t rtt, 69 int64_t rtt,
69 int64_t bwe_period_ms) override; 70 int64_t bwe_period_ms) override;
70 71
71 // From PacketFeedbackObserver. 72 // From PacketFeedbackObserver.
72 void OnPacketAdded(uint32_t ssrc, uint16_t seq_num) override; 73 void OnPacketAdded(uint32_t ssrc, uint16_t seq_num) override;
73 void OnPacketFeedbackVector( 74 void OnPacketFeedbackVector(
74 const std::vector<PacketFeedback>& packet_feedback_vector) override; 75 const std::vector<PacketFeedback>& packet_feedback_vector) override;
75 76
76 const webrtc::AudioSendStream::Config& config() const;
77 void SetTransportOverhead(int transport_overhead_per_packet); 77 void SetTransportOverhead(int transport_overhead_per_packet);
78 78
79 RtpState GetRtpState() const; 79 RtpState GetRtpState() const;
80 const TimeInterval& GetActiveLifetime() const; 80 const TimeInterval& GetActiveLifetime() const;
81 81
82 private: 82 private:
83 class TimedTransport; 83 class TimedTransport;
84 84
85 VoiceEngine* voice_engine() const; 85 VoiceEngine* voice_engine() const;
86 86
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 std::unique_ptr<TimedTransport> timed_send_transport_adapter_; 124 std::unique_ptr<TimedTransport> timed_send_transport_adapter_;
125 TimeInterval active_lifetime_; 125 TimeInterval active_lifetime_;
126 126
127 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioSendStream); 127 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioSendStream);
128 }; 128 };
129 } // namespace internal 129 } // namespace internal
130 } // namespace webrtc 130 } // namespace webrtc
131 131
132 #endif // WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_ 132 #endif // WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698