Convert channel counts to size_t.
IIRC, this was originally requested by ajm during review of the other size_t conversions I did over the past year, and I agreed it made sense, but wanted to do it separately since those changes were already gargantuan. BUG=chromium:81439 TEST=none R=henrik.lundin@webrtc.org, henrika@webrtc.org, kjellander@webrtc.org, minyue@webrtc.org, perkj@webrtc.org, solenberg@webrtc.org, stefan@webrtc.org, tina.legrand@webrtc.org Review URL: https://codereview.webrtc.org/1316523002 . Cr-Commit-Position: refs/heads/master@{#11229}
This commit is contained in:
@ -134,7 +134,7 @@ class AudioCodingModule {
|
||||
// 0 if succeeded.
|
||||
//
|
||||
static int Codec(const char* payload_name, CodecInst* codec,
|
||||
int sampling_freq_hz, int channels);
|
||||
int sampling_freq_hz, size_t channels);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// int32_t Codec()
|
||||
@ -153,7 +153,7 @@ class AudioCodingModule {
|
||||
// -1 if the codec is not found.
|
||||
//
|
||||
static int Codec(const char* payload_name, int sampling_freq_hz,
|
||||
int channels);
|
||||
size_t channels);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// bool IsCodecValid()
|
||||
|
Reference in New Issue
Block a user