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/macros.h" | 10 #include "base/macros.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
108 | 108 |
109 // Actually send the next cast message. | 109 // Actually send the next cast message. |
110 void SendNextCastMessage(); | 110 void SendNextCastMessage(); |
111 | 111 |
112 scoped_refptr<CastEnvironment> cast_environment_; | 112 scoped_refptr<CastEnvironment> cast_environment_; |
113 | 113 |
114 // Subscribes to raw events. | 114 // Subscribes to raw events. |
115 // Processes raw audio events to be sent over to the cast sender via RTCP. | 115 // Processes raw audio events to be sent over to the cast sender via RTCP. |
116 ReceiverRtcpEventSubscriber event_subscriber_; | 116 ReceiverRtcpEventSubscriber event_subscriber_; |
117 | 117 |
118 base::WeakPtrFactory<AudioReceiver> weak_factory_; | |
119 | |
120 const transport::AudioCodec codec_; | 118 const transport::AudioCodec codec_; |
121 const int frequency_; | 119 const int frequency_; |
122 base::TimeDelta target_delay_delta_; | 120 base::TimeDelta target_delay_delta_; |
123 scoped_ptr<Framer> audio_buffer_; | 121 scoped_ptr<Framer> audio_buffer_; |
124 scoped_ptr<AudioDecoder> audio_decoder_; | 122 scoped_ptr<AudioDecoder> audio_decoder_; |
125 scoped_ptr<LocalRtpAudioData> incoming_payload_callback_; | 123 scoped_ptr<LocalRtpAudioData> incoming_payload_callback_; |
126 scoped_ptr<LocalRtpAudioFeedback> incoming_payload_feedback_; | 124 scoped_ptr<LocalRtpAudioFeedback> incoming_payload_feedback_; |
127 scoped_ptr<RtpReceiver> rtp_receiver_; | 125 scoped_ptr<RtpReceiver> rtp_receiver_; |
128 scoped_ptr<Rtcp> rtcp_; | 126 scoped_ptr<Rtcp> rtcp_; |
129 scoped_ptr<RtpReceiverStatistics> rtp_audio_receiver_statistics_; | 127 scoped_ptr<RtpReceiverStatistics> rtp_audio_receiver_statistics_; |
130 base::TimeDelta time_offset_; | 128 base::TimeDelta time_offset_; |
131 base::TimeTicks time_first_incoming_packet_; | 129 base::TimeTicks time_first_incoming_packet_; |
132 uint32 first_incoming_rtp_timestamp_; | 130 uint32 first_incoming_rtp_timestamp_; |
133 transport::TransportEncryptionHandler decryptor_; | 131 transport::TransportEncryptionHandler decryptor_; |
134 base::TimeTicks last_playout_time_; | 132 base::TimeTicks last_playout_time_; |
135 | 133 |
136 std::list<AudioFrameEncodedCallback> queued_encoded_callbacks_; | 134 std::list<AudioFrameEncodedCallback> queued_encoded_callbacks_; |
137 std::list<DecodedAudioCallbackData> queued_decoded_callbacks_; | 135 std::list<DecodedAudioCallbackData> queued_decoded_callbacks_; |
138 | 136 |
139 // This mapping allows us to log kAudioAckSent as a frame event. In addition | 137 // This mapping allows us to log kAudioAckSent as a frame event. In addition |
140 // it allows the event to be transmitted via RTCP. | 138 // it allows the event to be transmitted via RTCP. |
141 RtpTimestamp frame_id_to_rtp_timestamp_[256]; | 139 RtpTimestamp frame_id_to_rtp_timestamp_[256]; |
142 | 140 |
141 // NOTE: This must always be last so it's invalidated before other member | |
142 // variables might be accessed. | |
Ami GONE FROM CHROMIUM
2014/03/10 22:02:08
Call me crazy but this comment is starting to seem
DaleCurtis
2014/03/10 22:22:40
Seemingly it's only repetitive because you're look
| |
143 base::WeakPtrFactory<AudioReceiver> weak_factory_; | |
144 | |
143 DISALLOW_COPY_AND_ASSIGN(AudioReceiver); | 145 DISALLOW_COPY_AND_ASSIGN(AudioReceiver); |
144 }; | 146 }; |
145 | 147 |
146 } // namespace cast | 148 } // namespace cast |
147 } // namespace media | 149 } // namespace media |
148 | 150 |
149 #endif // MEDIA_CAST_AUDIO_RECEIVER_AUDIO_RECEIVER_H_ | 151 #endif // MEDIA_CAST_AUDIO_RECEIVER_AUDIO_RECEIVER_H_ |
OLD | NEW |