| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 CriticalSectionScoped cs(encoder_lock_.get()); | 80 CriticalSectionScoped cs(encoder_lock_.get()); |
| 81 return encoder()->DecodeRedundant(encoded, encoded_len, sample_rate_hz, | 81 return encoder()->DecodeRedundant(encoded, encoded_len, sample_rate_hz, |
| 82 max_decoded_bytes, decoded, speech_type); | 82 max_decoded_bytes, decoded, speech_type); |
| 83 } | 83 } |
| 84 | 84 |
| 85 bool AudioEncoderDecoderMutableIsacFloat::HasDecodePlc() const { | 85 bool AudioEncoderDecoderMutableIsacFloat::HasDecodePlc() const { |
| 86 CriticalSectionScoped cs(encoder_lock_.get()); | 86 CriticalSectionScoped cs(encoder_lock_.get()); |
| 87 return encoder()->HasDecodePlc(); | 87 return encoder()->HasDecodePlc(); |
| 88 } | 88 } |
| 89 | 89 |
| 90 int AudioEncoderDecoderMutableIsacFloat::DecodePlc(int num_frames, | 90 size_t AudioEncoderDecoderMutableIsacFloat::DecodePlc(size_t num_frames, |
| 91 int16_t* decoded) { | 91 int16_t* decoded) { |
| 92 CriticalSectionScoped cs(encoder_lock_.get()); | 92 CriticalSectionScoped cs(encoder_lock_.get()); |
| 93 return encoder()->DecodePlc(num_frames, decoded); | 93 return encoder()->DecodePlc(num_frames, decoded); |
| 94 } | 94 } |
| 95 | 95 |
| 96 int AudioEncoderDecoderMutableIsacFloat::Init() { | 96 int AudioEncoderDecoderMutableIsacFloat::Init() { |
| 97 CriticalSectionScoped cs(encoder_lock_.get()); | 97 CriticalSectionScoped cs(encoder_lock_.get()); |
| 98 return encoder()->Init(); | 98 return encoder()->Init(); |
| 99 } | 99 } |
| 100 | 100 |
| 101 int AudioEncoderDecoderMutableIsacFloat::IncomingPacket( | 101 int AudioEncoderDecoderMutableIsacFloat::IncomingPacket( |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 CriticalSectionScoped cs(encoder_lock_.get()); | 134 CriticalSectionScoped cs(encoder_lock_.get()); |
| 135 return encoder()->PacketHasFec(encoded, encoded_len); | 135 return encoder()->PacketHasFec(encoded, encoded_len); |
| 136 } | 136 } |
| 137 | 137 |
| 138 size_t AudioEncoderDecoderMutableIsacFloat::Channels() const { | 138 size_t AudioEncoderDecoderMutableIsacFloat::Channels() const { |
| 139 CriticalSectionScoped cs(encoder_lock_.get()); | 139 CriticalSectionScoped cs(encoder_lock_.get()); |
| 140 return encoder()->Channels(); | 140 return encoder()->Channels(); |
| 141 } | 141 } |
| 142 | 142 |
| 143 } // namespace webrtc | 143 } // namespace webrtc |
| OLD | NEW |