| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 CHECK_EQ(0, T::Free(isac_state_)); | 102 CHECK_EQ(0, T::Free(isac_state_)); |
| 103 } | 103 } |
| 104 | 104 |
| 105 template <typename T> | 105 template <typename T> |
| 106 int AudioEncoderDecoderIsacT<T>::SampleRateHz() const { | 106 int AudioEncoderDecoderIsacT<T>::SampleRateHz() const { |
| 107 CriticalSectionScoped cs(state_lock_.get()); | 107 CriticalSectionScoped cs(state_lock_.get()); |
| 108 return T::EncSampRate(isac_state_); | 108 return T::EncSampRate(isac_state_); |
| 109 } | 109 } |
| 110 | 110 |
| 111 template <typename T> | 111 template <typename T> |
| 112 int AudioEncoderDecoderIsacT<T>::NumChannels() const { | 112 size_t AudioEncoderDecoderIsacT<T>::NumChannels() const { |
| 113 return 1; | 113 return 1; |
| 114 } | 114 } |
| 115 | 115 |
| 116 template <typename T> | 116 template <typename T> |
| 117 size_t AudioEncoderDecoderIsacT<T>::MaxEncodedBytes() const { | 117 size_t AudioEncoderDecoderIsacT<T>::MaxEncodedBytes() const { |
| 118 return kSufficientEncodeBufferSizeBytes; | 118 return kSufficientEncodeBufferSizeBytes; |
| 119 } | 119 } |
| 120 | 120 |
| 121 template <typename T> | 121 template <typename T> |
| 122 size_t AudioEncoderDecoderIsacT<T>::Num10MsFramesInNextPacket() const { | 122 size_t AudioEncoderDecoderIsacT<T>::Num10MsFramesInNextPacket() const { |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 | 230 |
| 231 template <typename T> | 231 template <typename T> |
| 232 int AudioEncoderDecoderIsacT<T>::ErrorCode() { | 232 int AudioEncoderDecoderIsacT<T>::ErrorCode() { |
| 233 CriticalSectionScoped cs(state_lock_.get()); | 233 CriticalSectionScoped cs(state_lock_.get()); |
| 234 return T::GetErrorCode(isac_state_); | 234 return T::GetErrorCode(isac_state_); |
| 235 } | 235 } |
| 236 | 236 |
| 237 } // namespace webrtc | 237 } // namespace webrtc |
| 238 | 238 |
| 239 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_AUDIO_ENCODER_ISAC_T_IMPL_H_ | 239 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_AUDIO_ENCODER_ISAC_T_IMPL_H_ |
| OLD | NEW |