| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 } | 47 } |
| 48 | 48 |
| 49 AudioEncoderIlbc::~AudioEncoderIlbc() { | 49 AudioEncoderIlbc::~AudioEncoderIlbc() { |
| 50 CHECK_EQ(0, WebRtcIlbcfix_EncoderFree(encoder_)); | 50 CHECK_EQ(0, WebRtcIlbcfix_EncoderFree(encoder_)); |
| 51 } | 51 } |
| 52 | 52 |
| 53 int AudioEncoderIlbc::SampleRateHz() const { | 53 int AudioEncoderIlbc::SampleRateHz() const { |
| 54 return kSampleRateHz; | 54 return kSampleRateHz; |
| 55 } | 55 } |
| 56 | 56 |
| 57 int AudioEncoderIlbc::NumChannels() const { | 57 size_t AudioEncoderIlbc::NumChannels() const { |
| 58 return 1; | 58 return 1; |
| 59 } | 59 } |
| 60 | 60 |
| 61 size_t AudioEncoderIlbc::MaxEncodedBytes() const { | 61 size_t AudioEncoderIlbc::MaxEncodedBytes() const { |
| 62 return RequiredOutputSizeBytes(); | 62 return RequiredOutputSizeBytes(); |
| 63 } | 63 } |
| 64 | 64 |
| 65 size_t AudioEncoderIlbc::Num10MsFramesInNextPacket() const { | 65 size_t AudioEncoderIlbc::Num10MsFramesInNextPacket() const { |
| 66 return num_10ms_frames_per_packet_; | 66 return num_10ms_frames_per_packet_; |
| 67 } | 67 } |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 config.payload_type = codec_inst.pltype; | 139 config.payload_type = codec_inst.pltype; |
| 140 return config; | 140 return config; |
| 141 } | 141 } |
| 142 } // namespace | 142 } // namespace |
| 143 | 143 |
| 144 AudioEncoderMutableIlbc::AudioEncoderMutableIlbc(const CodecInst& codec_inst) | 144 AudioEncoderMutableIlbc::AudioEncoderMutableIlbc(const CodecInst& codec_inst) |
| 145 : AudioEncoderMutableImpl<AudioEncoderIlbc>(CreateConfig(codec_inst)) { | 145 : AudioEncoderMutableImpl<AudioEncoderIlbc>(CreateConfig(codec_inst)) { |
| 146 } | 146 } |
| 147 | 147 |
| 148 } // namespace webrtc | 148 } // namespace webrtc |
| OLD | NEW |