| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 15 matching lines...) Expand all Loading... |
| 26 } | 26 } |
| 27 | 27 |
| 28 int AudioEncoderCopyRed::SampleRateHz() const { | 28 int AudioEncoderCopyRed::SampleRateHz() const { |
| 29 return speech_encoder_->SampleRateHz(); | 29 return speech_encoder_->SampleRateHz(); |
| 30 } | 30 } |
| 31 | 31 |
| 32 int AudioEncoderCopyRed::RtpTimestampRateHz() const { | 32 int AudioEncoderCopyRed::RtpTimestampRateHz() const { |
| 33 return speech_encoder_->RtpTimestampRateHz(); | 33 return speech_encoder_->RtpTimestampRateHz(); |
| 34 } | 34 } |
| 35 | 35 |
| 36 int AudioEncoderCopyRed::NumChannels() const { | 36 size_t AudioEncoderCopyRed::NumChannels() const { |
| 37 return speech_encoder_->NumChannels(); | 37 return speech_encoder_->NumChannels(); |
| 38 } | 38 } |
| 39 | 39 |
| 40 size_t AudioEncoderCopyRed::MaxEncodedBytes() const { | 40 size_t AudioEncoderCopyRed::MaxEncodedBytes() const { |
| 41 return 2 * speech_encoder_->MaxEncodedBytes(); | 41 return 2 * speech_encoder_->MaxEncodedBytes(); |
| 42 } | 42 } |
| 43 | 43 |
| 44 size_t AudioEncoderCopyRed::Num10MsFramesInNextPacket() const { | 44 size_t AudioEncoderCopyRed::Num10MsFramesInNextPacket() const { |
| 45 return speech_encoder_->Num10MsFramesInNextPacket(); | 45 return speech_encoder_->Num10MsFramesInNextPacket(); |
| 46 } | 46 } |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 info.payload_type = red_payload_type_; | 97 info.payload_type = red_payload_type_; |
| 98 info.encoded_bytes = 0; | 98 info.encoded_bytes = 0; |
| 99 for (std::vector<EncodedInfoLeaf>::const_iterator it = info.redundant.begin(); | 99 for (std::vector<EncodedInfoLeaf>::const_iterator it = info.redundant.begin(); |
| 100 it != info.redundant.end(); ++it) { | 100 it != info.redundant.end(); ++it) { |
| 101 info.encoded_bytes += it->encoded_bytes; | 101 info.encoded_bytes += it->encoded_bytes; |
| 102 } | 102 } |
| 103 return info; | 103 return info; |
| 104 } | 104 } |
| 105 | 105 |
| 106 } // namespace webrtc | 106 } // namespace webrtc |
| OLD | NEW |