OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_CAST_AUDIO_RECEIVER_AUDIO_RECEIVER_H_ | 5 #ifndef MEDIA_CAST_AUDIO_RECEIVER_AUDIO_RECEIVER_H_ |
6 #define MEDIA_CAST_AUDIO_RECEIVER_AUDIO_RECEIVER_H_ | 6 #define MEDIA_CAST_AUDIO_RECEIVER_AUDIO_RECEIVER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // Schedule timing for the next cast message. | 92 // Schedule timing for the next cast message. |
93 void ScheduleNextCastMessage(); | 93 void ScheduleNextCastMessage(); |
94 | 94 |
95 // Actually send the next cast message. | 95 // Actually send the next cast message. |
96 void SendNextCastMessage(); | 96 void SendNextCastMessage(); |
97 | 97 |
98 scoped_refptr<CastEnvironment> cast_environment_; | 98 scoped_refptr<CastEnvironment> cast_environment_; |
99 base::WeakPtrFactory<AudioReceiver> weak_factory_; | 99 base::WeakPtrFactory<AudioReceiver> weak_factory_; |
100 | 100 |
101 const AudioCodec codec_; | 101 const AudioCodec codec_; |
102 const uint32 incoming_ssrc_; | |
103 const int frequency_; | 102 const int frequency_; |
104 base::TimeDelta target_delay_delta_; | 103 base::TimeDelta target_delay_delta_; |
105 scoped_ptr<Framer> audio_buffer_; | 104 scoped_ptr<Framer> audio_buffer_; |
106 scoped_refptr<AudioDecoder> audio_decoder_; | 105 scoped_refptr<AudioDecoder> audio_decoder_; |
107 scoped_ptr<LocalRtpAudioData> incoming_payload_callback_; | 106 scoped_ptr<LocalRtpAudioData> incoming_payload_callback_; |
108 scoped_ptr<LocalRtpAudioFeedback> incoming_payload_feedback_; | 107 scoped_ptr<LocalRtpAudioFeedback> incoming_payload_feedback_; |
109 scoped_ptr<RtpReceiver> rtp_receiver_; | 108 scoped_ptr<RtpReceiver> rtp_receiver_; |
110 scoped_ptr<Rtcp> rtcp_; | 109 scoped_ptr<Rtcp> rtcp_; |
111 scoped_ptr<RtpReceiverStatistics> rtp_audio_receiver_statistics_; | 110 scoped_ptr<RtpReceiverStatistics> rtp_audio_receiver_statistics_; |
112 base::TimeDelta time_offset_; | 111 base::TimeDelta time_offset_; |
113 base::TimeTicks time_first_incoming_packet_; | 112 base::TimeTicks time_first_incoming_packet_; |
114 uint32 first_incoming_rtp_timestamp_; | 113 uint32 first_incoming_rtp_timestamp_; |
115 | 114 |
116 std::list<AudioFrameEncodedCallback> queued_encoded_callbacks_; | 115 std::list<AudioFrameEncodedCallback> queued_encoded_callbacks_; |
117 }; | 116 }; |
118 | 117 |
119 } // namespace cast | 118 } // namespace cast |
120 } // namespace media | 119 } // namespace media |
121 | 120 |
122 #endif // MEDIA_CAST_AUDIO_RECEIVER_AUDIO_RECEIVER_H_ | 121 #endif // MEDIA_CAST_AUDIO_RECEIVER_AUDIO_RECEIVER_H_ |
OLD | NEW |