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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 } | 57 } |
58 | 58 |
59 size_t AudioEncoderIlbc::MaxEncodedBytes() const { | 59 size_t AudioEncoderIlbc::MaxEncodedBytes() const { |
60 return RequiredOutputSizeBytes(); | 60 return RequiredOutputSizeBytes(); |
61 } | 61 } |
62 | 62 |
63 int AudioEncoderIlbc::SampleRateHz() const { | 63 int AudioEncoderIlbc::SampleRateHz() const { |
64 return kSampleRateHz; | 64 return kSampleRateHz; |
65 } | 65 } |
66 | 66 |
67 int AudioEncoderIlbc::NumChannels() const { | 67 size_t AudioEncoderIlbc::NumChannels() const { |
68 return 1; | 68 return 1; |
69 } | 69 } |
70 | 70 |
71 size_t AudioEncoderIlbc::Num10MsFramesInNextPacket() const { | 71 size_t AudioEncoderIlbc::Num10MsFramesInNextPacket() const { |
72 return num_10ms_frames_per_packet_; | 72 return num_10ms_frames_per_packet_; |
73 } | 73 } |
74 | 74 |
75 size_t AudioEncoderIlbc::Max10MsFramesInAPacket() const { | 75 size_t AudioEncoderIlbc::Max10MsFramesInAPacket() const { |
76 return num_10ms_frames_per_packet_; | 76 return num_10ms_frames_per_packet_; |
77 } | 77 } |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 switch (num_10ms_frames_per_packet_) { | 144 switch (num_10ms_frames_per_packet_) { |
145 case 2: return 38; | 145 case 2: return 38; |
146 case 3: return 50; | 146 case 3: return 50; |
147 case 4: return 2 * 38; | 147 case 4: return 2 * 38; |
148 case 6: return 2 * 50; | 148 case 6: return 2 * 50; |
149 default: FATAL(); | 149 default: FATAL(); |
150 } | 150 } |
151 } | 151 } |
152 | 152 |
153 } // namespace webrtc | 153 } // namespace webrtc |
OLD | NEW |