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_SEND_STREAM_H_ | 11 #ifndef WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_ |
12 #define WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_ | 12 #define WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_ |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 | 15 |
16 #include "webrtc/api/call/audio_send_stream.h" | 16 #include "webrtc/api/call/audio_send_stream.h" |
17 #include "webrtc/api/call/audio_state.h" | 17 #include "webrtc/api/call/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/bitrate_allocator.h" | 20 #include "webrtc/call/bitrate_allocator.h" |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 class CongestionController; | 23 class CongestionController; |
24 class VoiceEngine; | 24 class VoiceEngine; |
| 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 class AudioSendStream final : public webrtc::AudioSendStream, | 32 class AudioSendStream final : public webrtc::AudioSendStream, |
32 public webrtc::BitrateAllocatorObserver { | 33 public webrtc::BitrateAllocatorObserver { |
33 public: | 34 public: |
34 AudioSendStream(const webrtc::AudioSendStream::Config& config, | 35 AudioSendStream(const webrtc::AudioSendStream::Config& config, |
35 const rtc::scoped_refptr<webrtc::AudioState>& audio_state, | 36 const rtc::scoped_refptr<webrtc::AudioState>& audio_state, |
36 rtc::TaskQueue* worker_queue, | 37 rtc::TaskQueue* worker_queue, |
37 CongestionController* congestion_controller, | 38 CongestionController* congestion_controller, |
38 BitrateAllocator* bitrate_allocator); | 39 BitrateAllocator* bitrate_allocator, |
| 40 RtcEventLog* event_log); |
39 ~AudioSendStream() override; | 41 ~AudioSendStream() override; |
40 | 42 |
41 // webrtc::AudioSendStream implementation. | 43 // webrtc::AudioSendStream implementation. |
42 void Start() override; | 44 void Start() override; |
43 void Stop() override; | 45 void Stop() override; |
44 bool SendTelephoneEvent(int payload_type, int event, | 46 bool SendTelephoneEvent(int payload_type, int event, |
45 int duration_ms) override; | 47 int duration_ms) override; |
46 void SetMuted(bool muted) override; | 48 void SetMuted(bool muted) override; |
47 webrtc::AudioSendStream::Stats GetStats() const override; | 49 webrtc::AudioSendStream::Stats GetStats() const override; |
48 | 50 |
(...skipping 17 matching lines...) Expand all Loading... |
66 std::unique_ptr<voe::ChannelProxy> channel_proxy_; | 68 std::unique_ptr<voe::ChannelProxy> channel_proxy_; |
67 | 69 |
68 BitrateAllocator* const bitrate_allocator_; | 70 BitrateAllocator* const bitrate_allocator_; |
69 | 71 |
70 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioSendStream); | 72 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioSendStream); |
71 }; | 73 }; |
72 } // namespace internal | 74 } // namespace internal |
73 } // namespace webrtc | 75 } // namespace webrtc |
74 | 76 |
75 #endif // WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_ | 77 #endif // WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_ |
OLD | NEW |