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 |
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/audio_receive_stream.h" | 16 #include "webrtc/audio_receive_stream.h" |
17 #include "webrtc/audio_state.h" | 17 #include "webrtc/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/modules/rtp_rtcp/include/rtp_header_parser.h" | 20 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 class CongestionController; | 23 class CongestionController; |
24 class RemoteBitrateEstimator; | 24 class RemoteBitrateEstimator; |
| 25 class RtcEventLog; |
25 | 26 |
26 namespace voe { | 27 namespace voe { |
27 class ChannelProxy; | 28 class ChannelProxy; |
28 } // namespace voe | 29 } // namespace voe |
29 | 30 |
30 namespace internal { | 31 namespace internal { |
31 | 32 |
32 class AudioReceiveStream final : public webrtc::AudioReceiveStream { | 33 class AudioReceiveStream final : public webrtc::AudioReceiveStream { |
33 public: | 34 public: |
34 AudioReceiveStream(CongestionController* congestion_controller, | 35 AudioReceiveStream(CongestionController* congestion_controller, |
35 const webrtc::AudioReceiveStream::Config& config, | 36 const webrtc::AudioReceiveStream::Config& config, |
36 const rtc::scoped_refptr<webrtc::AudioState>& audio_state); | 37 const rtc::scoped_refptr<webrtc::AudioState>& audio_state, |
| 38 webrtc::RtcEventLog* event_log); |
37 ~AudioReceiveStream() override; | 39 ~AudioReceiveStream() override; |
38 | 40 |
39 // webrtc::AudioReceiveStream implementation. | 41 // webrtc::AudioReceiveStream implementation. |
40 void Start() override; | 42 void Start() override; |
41 void Stop() override; | 43 void Stop() override; |
42 webrtc::AudioReceiveStream::Stats GetStats() const override; | 44 webrtc::AudioReceiveStream::Stats GetStats() const override; |
43 void SetSink(std::unique_ptr<AudioSinkInterface> sink) override; | 45 void SetSink(std::unique_ptr<AudioSinkInterface> sink) override; |
44 void SetGain(float gain) override; | 46 void SetGain(float gain) override; |
45 | 47 |
46 void SignalNetworkState(NetworkState state); | 48 void SignalNetworkState(NetworkState state); |
(...skipping 12 matching lines...) Expand all Loading... |
59 rtc::scoped_refptr<webrtc::AudioState> audio_state_; | 61 rtc::scoped_refptr<webrtc::AudioState> audio_state_; |
60 std::unique_ptr<RtpHeaderParser> rtp_header_parser_; | 62 std::unique_ptr<RtpHeaderParser> rtp_header_parser_; |
61 std::unique_ptr<voe::ChannelProxy> channel_proxy_; | 63 std::unique_ptr<voe::ChannelProxy> channel_proxy_; |
62 | 64 |
63 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioReceiveStream); | 65 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioReceiveStream); |
64 }; | 66 }; |
65 } // namespace internal | 67 } // namespace internal |
66 } // namespace webrtc | 68 } // namespace webrtc |
67 | 69 |
68 #endif // WEBRTC_AUDIO_AUDIO_RECEIVE_STREAM_H_ | 70 #endif // WEBRTC_AUDIO_AUDIO_RECEIVE_STREAM_H_ |
OLD | NEW |