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

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

Issue 2669463006: Move RemoteBitrateEstimator::RemoveStream calls from receive streams to Call. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | webrtc/audio/audio_receive_stream.cc » ('j') | webrtc/call/call.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
11 #ifndef WEBRTC_AUDIO_AUDIO_RECEIVE_STREAM_H_ 11 #ifndef WEBRTC_AUDIO_AUDIO_RECEIVE_STREAM_H_
12 #define WEBRTC_AUDIO_AUDIO_RECEIVE_STREAM_H_ 12 #define WEBRTC_AUDIO_AUDIO_RECEIVE_STREAM_H_
13 13
14 #include <memory> 14 #include <memory>
15 15
16 #include "webrtc/api/audio/audio_mixer.h" 16 #include "webrtc/api/audio/audio_mixer.h"
17 #include "webrtc/audio/audio_state.h" 17 #include "webrtc/audio/audio_state.h"
18 #include "webrtc/base/constructormagic.h" 18 #include "webrtc/base/constructormagic.h"
19 #include "webrtc/base/thread_checker.h" 19 #include "webrtc/base/thread_checker.h"
20 #include "webrtc/call/audio_receive_stream.h" 20 #include "webrtc/call/audio_receive_stream.h"
21 #include "webrtc/call/syncable.h" 21 #include "webrtc/call/syncable.h"
22 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" 22 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h"
23 23
24 namespace webrtc { 24 namespace webrtc {
25 class PacketRouter; 25 class PacketRouter;
26 class RemoteBitrateEstimator;
27 class RtcEventLog; 26 class RtcEventLog;
28 27
29 namespace voe { 28 namespace voe {
30 class ChannelProxy; 29 class ChannelProxy;
31 } // namespace voe 30 } // namespace voe
32 31
33 namespace internal { 32 namespace internal {
34 class AudioSendStream; 33 class AudioSendStream;
35 34
36 class AudioReceiveStream final : public webrtc::AudioReceiveStream, 35 class AudioReceiveStream final : public webrtc::AudioReceiveStream,
37 public AudioMixer::Source, 36 public AudioMixer::Source,
38 public Syncable { 37 public Syncable {
39 public: 38 public:
40 AudioReceiveStream(PacketRouter* packet_router, 39 AudioReceiveStream(PacketRouter* packet_router,
41 RemoteBitrateEstimator* remote_bitrate_estimator,
42 const webrtc::AudioReceiveStream::Config& config, 40 const webrtc::AudioReceiveStream::Config& config,
43 const rtc::scoped_refptr<webrtc::AudioState>& audio_state, 41 const rtc::scoped_refptr<webrtc::AudioState>& audio_state,
44 webrtc::RtcEventLog* event_log); 42 webrtc::RtcEventLog* event_log);
45 ~AudioReceiveStream() override; 43 ~AudioReceiveStream() override;
46 44
47 // webrtc::AudioReceiveStream implementation. 45 // webrtc::AudioReceiveStream implementation.
48 void Start() override; 46 void Start() override;
49 void Stop() override; 47 void Stop() override;
50 webrtc::AudioReceiveStream::Stats GetStats() const override; 48 webrtc::AudioReceiveStream::Stats GetStats() const override;
51 void SetSink(std::unique_ptr<AudioSinkInterface> sink) override; 49 void SetSink(std::unique_ptr<AudioSinkInterface> sink) override;
(...skipping 19 matching lines...) Expand all
71 const PacketTime& packet_time); 69 const PacketTime& packet_time);
72 const webrtc::AudioReceiveStream::Config& config() const; 70 const webrtc::AudioReceiveStream::Config& config() const;
73 71
74 private: 72 private:
75 VoiceEngine* voice_engine() const; 73 VoiceEngine* voice_engine() const;
76 AudioState* audio_state() const; 74 AudioState* audio_state() const;
77 int SetVoiceEnginePlayout(bool playout); 75 int SetVoiceEnginePlayout(bool playout);
78 76
79 rtc::ThreadChecker worker_thread_checker_; 77 rtc::ThreadChecker worker_thread_checker_;
80 rtc::ThreadChecker module_process_thread_checker_; 78 rtc::ThreadChecker module_process_thread_checker_;
81 RemoteBitrateEstimator* const remote_bitrate_estimator_;
82 const webrtc::AudioReceiveStream::Config config_; 79 const webrtc::AudioReceiveStream::Config config_;
83 rtc::scoped_refptr<webrtc::AudioState> audio_state_; 80 rtc::scoped_refptr<webrtc::AudioState> audio_state_;
84 std::unique_ptr<RtpHeaderParser> rtp_header_parser_; 81 std::unique_ptr<RtpHeaderParser> rtp_header_parser_;
85 std::unique_ptr<voe::ChannelProxy> channel_proxy_; 82 std::unique_ptr<voe::ChannelProxy> channel_proxy_;
86 83
87 bool playing_ ACCESS_ON(worker_thread_checker_) = false; 84 bool playing_ ACCESS_ON(worker_thread_checker_) = false;
88 85
89 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioReceiveStream); 86 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioReceiveStream);
90 }; 87 };
91 } // namespace internal 88 } // namespace internal
92 } // namespace webrtc 89 } // namespace webrtc
93 90
94 #endif // WEBRTC_AUDIO_AUDIO_RECEIVE_STREAM_H_ 91 #endif // WEBRTC_AUDIO_AUDIO_RECEIVE_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/audio/audio_receive_stream.cc » ('j') | webrtc/call/call.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698