| 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/api/audio/audio_mixer.h" | 16 #include "webrtc/api/audio/audio_mixer.h" |
| 17 #include "webrtc/api/call/audio_receive_stream.h" | 17 #include "webrtc/api/call/audio_receive_stream.h" |
| 18 #include "webrtc/api/call/audio_state.h" | 18 #include "webrtc/api/call/audio_state.h" |
| 19 #include "webrtc/audio/audio_state.h" |
| 19 #include "webrtc/base/constructormagic.h" | 20 #include "webrtc/base/constructormagic.h" |
| 20 #include "webrtc/base/thread_checker.h" | 21 #include "webrtc/base/thread_checker.h" |
| 21 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" | 22 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" |
| 22 | 23 |
| 23 namespace webrtc { | 24 namespace webrtc { |
| 24 class CongestionController; | 25 class CongestionController; |
| 25 class RemoteBitrateEstimator; | 26 class RemoteBitrateEstimator; |
| 26 class RtcEventLog; | 27 class RtcEventLog; |
| 27 | 28 |
| 28 namespace voe { | 29 namespace voe { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 55 const webrtc::AudioReceiveStream::Config& config() const; | 56 const webrtc::AudioReceiveStream::Config& config() const; |
| 56 | 57 |
| 57 // AudioMixer::Source | 58 // AudioMixer::Source |
| 58 AudioFrameInfo GetAudioFrameWithInfo(int sample_rate_hz, | 59 AudioFrameInfo GetAudioFrameWithInfo(int sample_rate_hz, |
| 59 AudioFrame* audio_frame) override; | 60 AudioFrame* audio_frame) override; |
| 60 int PreferredSampleRate() const override; | 61 int PreferredSampleRate() const override; |
| 61 int Ssrc() const override; | 62 int Ssrc() const override; |
| 62 | 63 |
| 63 private: | 64 private: |
| 64 VoiceEngine* voice_engine() const; | 65 VoiceEngine* voice_engine() const; |
| 66 AudioState* audio_state() const; |
| 65 | 67 |
| 66 rtc::ThreadChecker thread_checker_; | 68 rtc::ThreadChecker thread_checker_; |
| 67 RemoteBitrateEstimator* remote_bitrate_estimator_ = nullptr; | 69 RemoteBitrateEstimator* remote_bitrate_estimator_ = nullptr; |
| 68 const webrtc::AudioReceiveStream::Config config_; | 70 const webrtc::AudioReceiveStream::Config config_; |
| 69 rtc::scoped_refptr<webrtc::AudioState> audio_state_; | 71 rtc::scoped_refptr<webrtc::AudioState> audio_state_; |
| 70 std::unique_ptr<RtpHeaderParser> rtp_header_parser_; | 72 std::unique_ptr<RtpHeaderParser> rtp_header_parser_; |
| 71 std::unique_ptr<voe::ChannelProxy> channel_proxy_; | 73 std::unique_ptr<voe::ChannelProxy> channel_proxy_; |
| 72 | 74 |
| 75 bool playing_ ACCESS_ON(thread_checker_) = false; |
| 76 |
| 73 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioReceiveStream); | 77 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioReceiveStream); |
| 74 }; | 78 }; |
| 75 } // namespace internal | 79 } // namespace internal |
| 76 } // namespace webrtc | 80 } // namespace webrtc |
| 77 | 81 |
| 78 #endif // WEBRTC_AUDIO_AUDIO_RECEIVE_STREAM_H_ | 82 #endif // WEBRTC_AUDIO_AUDIO_RECEIVE_STREAM_H_ |
| OLD | NEW |