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 "webrtc/audio_receive_stream.h" | 14 #include "webrtc/audio_receive_stream.h" |
15 #include "webrtc/modules/rtp_rtcp/interface/rtp_header_parser.h" | 15 #include "webrtc/modules/rtp_rtcp/interface/rtp_header_parser.h" |
16 | 16 |
17 namespace webrtc { | 17 namespace webrtc { |
18 | 18 |
19 class RemoteBitrateEstimator; | 19 class RemoteBitrateEstimator; |
20 class VoiceEngine; | |
20 | 21 |
21 namespace internal { | 22 namespace internal { |
22 | 23 |
23 class AudioReceiveStream : public webrtc::AudioReceiveStream { | 24 class AudioReceiveStream : public webrtc::AudioReceiveStream { |
24 public: | 25 public: |
25 AudioReceiveStream(RemoteBitrateEstimator* remote_bitrate_estimator, | 26 AudioReceiveStream(RemoteBitrateEstimator* remote_bitrate_estimator, |
26 const webrtc::AudioReceiveStream::Config& config); | 27 const webrtc::AudioReceiveStream::Config& config, |
28 VoiceEngine* voice_engine); | |
27 ~AudioReceiveStream() override; | 29 ~AudioReceiveStream() override; |
28 | 30 |
29 // webrtc::ReceiveStream implementation. | 31 // webrtc::ReceiveStream implementation. |
30 void Start() override; | 32 void Start() override; |
31 void Stop() override; | 33 void Stop() override; |
32 void SignalNetworkState(NetworkState state) override; | 34 void SignalNetworkState(NetworkState state) override; |
33 bool DeliverRtcp(const uint8_t* packet, size_t length) override; | 35 bool DeliverRtcp(const uint8_t* packet, size_t length) override; |
34 bool DeliverRtp(const uint8_t* packet, | 36 bool DeliverRtp(const uint8_t* packet, |
35 size_t length, | 37 size_t length, |
36 const PacketTime& packet_time) override; | 38 const PacketTime& packet_time) override; |
37 | 39 |
38 // webrtc::AudioReceiveStream implementation. | 40 // webrtc::AudioReceiveStream implementation. |
39 webrtc::AudioReceiveStream::Stats GetStats() const override; | 41 webrtc::AudioReceiveStream::Stats GetStats() const override; |
40 | 42 |
41 const webrtc::AudioReceiveStream::Config& config() const; | 43 const webrtc::AudioReceiveStream::Config& config() const; |
42 | 44 |
43 private: | 45 private: |
44 RemoteBitrateEstimator* const remote_bitrate_estimator_; | 46 RemoteBitrateEstimator* const remote_bitrate_estimator_; |
45 const webrtc::AudioReceiveStream::Config config_; | 47 const webrtc::AudioReceiveStream::Config config_; |
48 VoiceEngine* voice_engine_; | |
tommi
2015/10/19 12:36:24
document ownership, lifetime?
the sun
2015/10/19 14:25:02
Done.
| |
46 rtc::scoped_ptr<RtpHeaderParser> rtp_header_parser_; | 49 rtc::scoped_ptr<RtpHeaderParser> rtp_header_parser_; |
47 }; | 50 }; |
48 } // namespace internal | 51 } // namespace internal |
49 } // namespace webrtc | 52 } // namespace webrtc |
50 | 53 |
51 #endif // WEBRTC_AUDIO_AUDIO_RECEIVE_STREAM_H_ | 54 #endif // WEBRTC_AUDIO_AUDIO_RECEIVE_STREAM_H_ |
OLD | NEW |