| 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 "webrtc/audio_send_stream.h" | 14 #include "webrtc/audio_send_stream.h" |
| 15 #include "webrtc/audio_state.h" | 15 #include "webrtc/audio_state.h" |
| 16 #include "webrtc/base/thread_checker.h" | 16 #include "webrtc/base/thread_checker.h" |
| 17 | 17 |
| 18 namespace webrtc { | 18 namespace webrtc { |
| 19 |
| 20 class VoiceEngine; |
| 21 |
| 19 namespace internal { | 22 namespace internal { |
| 20 | 23 |
| 21 class AudioSendStream final : public webrtc::AudioSendStream { | 24 class AudioSendStream final : public webrtc::AudioSendStream { |
| 22 public: | 25 public: |
| 23 AudioSendStream(const webrtc::AudioSendStream::Config& config, | 26 AudioSendStream(const webrtc::AudioSendStream::Config& config, |
| 24 const rtc::scoped_refptr<webrtc::AudioState>& audio_state); | 27 const rtc::scoped_refptr<webrtc::AudioState>& audio_state); |
| 25 ~AudioSendStream() override; | 28 ~AudioSendStream() override; |
| 26 | 29 |
| 27 // webrtc::SendStream implementation. | 30 // webrtc::SendStream implementation. |
| 28 void Start() override; | 31 void Start() override; |
| 29 void Stop() override; | 32 void Stop() override; |
| 30 void SignalNetworkState(NetworkState state) override; | 33 void SignalNetworkState(NetworkState state) override; |
| 31 bool DeliverRtcp(const uint8_t* packet, size_t length) override; | 34 bool DeliverRtcp(const uint8_t* packet, size_t length) override; |
| 32 | 35 |
| 33 // webrtc::AudioSendStream implementation. | 36 // webrtc::AudioSendStream implementation. |
| 34 webrtc::AudioSendStream::Stats GetStats() const override; | 37 webrtc::AudioSendStream::Stats GetStats() const override; |
| 35 | 38 |
| 36 const webrtc::AudioSendStream::Config& config() const; | 39 const webrtc::AudioSendStream::Config& config() const; |
| 37 | 40 |
| 38 private: | 41 private: |
| 42 VoiceEngine* voice_engine() const; |
| 43 |
| 39 rtc::ThreadChecker thread_checker_; | 44 rtc::ThreadChecker thread_checker_; |
| 40 const webrtc::AudioSendStream::Config config_; | 45 const webrtc::AudioSendStream::Config config_; |
| 41 rtc::scoped_refptr<webrtc::AudioState> audio_state_; | 46 rtc::scoped_refptr<webrtc::AudioState> audio_state_; |
| 42 | 47 |
| 43 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioSendStream); | 48 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioSendStream); |
| 44 }; | 49 }; |
| 45 } // namespace internal | 50 } // namespace internal |
| 46 } // namespace webrtc | 51 } // namespace webrtc |
| 47 | 52 |
| 48 #endif // WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_ | 53 #endif // WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_ |
| OLD | NEW |