Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Side by Side Diff: webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.cc

Issue 1316523002: Convert channel counts to size_t. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Fix compile Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 14 matching lines...) Expand all
25 AudioEncoderCopyRed::~AudioEncoderCopyRed() = default; 25 AudioEncoderCopyRed::~AudioEncoderCopyRed() = default;
26 26
27 size_t AudioEncoderCopyRed::MaxEncodedBytes() const { 27 size_t AudioEncoderCopyRed::MaxEncodedBytes() const {
28 return 2 * speech_encoder_->MaxEncodedBytes(); 28 return 2 * speech_encoder_->MaxEncodedBytes();
29 } 29 }
30 30
31 int AudioEncoderCopyRed::SampleRateHz() const { 31 int AudioEncoderCopyRed::SampleRateHz() const {
32 return speech_encoder_->SampleRateHz(); 32 return speech_encoder_->SampleRateHz();
33 } 33 }
34 34
35 int AudioEncoderCopyRed::NumChannels() const { 35 size_t AudioEncoderCopyRed::NumChannels() const {
36 return speech_encoder_->NumChannels(); 36 return speech_encoder_->NumChannels();
37 } 37 }
38 38
39 int AudioEncoderCopyRed::RtpTimestampRateHz() const { 39 int AudioEncoderCopyRed::RtpTimestampRateHz() const {
40 return speech_encoder_->RtpTimestampRateHz(); 40 return speech_encoder_->RtpTimestampRateHz();
41 } 41 }
42 42
43 size_t AudioEncoderCopyRed::Num10MsFramesInNextPacket() const { 43 size_t AudioEncoderCopyRed::Num10MsFramesInNextPacket() const {
44 return speech_encoder_->Num10MsFramesInNextPacket(); 44 return speech_encoder_->Num10MsFramesInNextPacket();
45 } 45 }
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 void AudioEncoderCopyRed::SetProjectedPacketLossRate(double fraction) { 115 void AudioEncoderCopyRed::SetProjectedPacketLossRate(double fraction) {
116 speech_encoder_->SetProjectedPacketLossRate(fraction); 116 speech_encoder_->SetProjectedPacketLossRate(fraction);
117 } 117 }
118 118
119 void AudioEncoderCopyRed::SetTargetBitrate(int bits_per_second) { 119 void AudioEncoderCopyRed::SetTargetBitrate(int bits_per_second) {
120 speech_encoder_->SetTargetBitrate(bits_per_second); 120 speech_encoder_->SetTargetBitrate(bits_per_second);
121 } 121 }
122 122
123 } // namespace webrtc 123 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698