| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 rtp_header->header.timestamp); | 190 rtp_header->header.timestamp); |
| 191 rtp_header->type.Audio.numEnergy = rtp_header->header.numCSRCs; | 191 rtp_header->type.Audio.numEnergy = rtp_header->header.numCSRCs; |
| 192 num_energy_ = rtp_header->type.Audio.numEnergy; | 192 num_energy_ = rtp_header->type.Audio.numEnergy; |
| 193 if (rtp_header->type.Audio.numEnergy > 0 && | 193 if (rtp_header->type.Audio.numEnergy > 0 && |
| 194 rtp_header->type.Audio.numEnergy <= kRtpCsrcSize) { | 194 rtp_header->type.Audio.numEnergy <= kRtpCsrcSize) { |
| 195 memcpy(current_remote_energy_, | 195 memcpy(current_remote_energy_, |
| 196 rtp_header->type.Audio.arrOfEnergy, | 196 rtp_header->type.Audio.arrOfEnergy, |
| 197 rtp_header->type.Audio.numEnergy); | 197 rtp_header->type.Audio.numEnergy); |
| 198 } | 198 } |
| 199 | 199 |
| 200 if (first_packet_received_()) { |
| 201 LOG(LS_INFO) << "Received first audio RTP packet"; |
| 202 } |
| 203 |
| 200 return ParseAudioCodecSpecific(rtp_header, | 204 return ParseAudioCodecSpecific(rtp_header, |
| 201 payload, | 205 payload, |
| 202 payload_length, | 206 payload_length, |
| 203 specific_payload.Audio, | 207 specific_payload.Audio, |
| 204 is_red); | 208 is_red); |
| 205 } | 209 } |
| 206 | 210 |
| 207 int RTPReceiverAudio::GetPayloadTypeFrequency() const { | 211 int RTPReceiverAudio::GetPayloadTypeFrequency() const { |
| 208 CriticalSectionScoped lock(crit_sect_.get()); | 212 CriticalSectionScoped lock(crit_sect_.get()); |
| 209 if (last_received_g722_) { | 213 if (last_received_g722_) { |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 // only one frame in the RED strip the one byte to help NetEq | 380 // only one frame in the RED strip the one byte to help NetEq |
| 377 return data_callback_->OnReceivedPayloadData( | 381 return data_callback_->OnReceivedPayloadData( |
| 378 payload_data + 1, payload_length - 1, rtp_header); | 382 payload_data + 1, payload_length - 1, rtp_header); |
| 379 } | 383 } |
| 380 | 384 |
| 381 rtp_header->type.Audio.channel = audio_specific.channels; | 385 rtp_header->type.Audio.channel = audio_specific.channels; |
| 382 return data_callback_->OnReceivedPayloadData( | 386 return data_callback_->OnReceivedPayloadData( |
| 383 payload_data, payload_length, rtp_header); | 387 payload_data, payload_length, rtp_header); |
| 384 } | 388 } |
| 385 } // namespace webrtc | 389 } // namespace webrtc |
| OLD | NEW |