Fix MSVC warnings about value truncations, webrtc/common_audio/ edition.
This changes some method signatures to better reflect how callers are actually using them. This also has the tendency to make signatures more consistent about e.g. using int (instead of int16_t) for lengths of things like vectors, and using int16_t (instead of int) for e.g. counts of bits in a value. This also removes a couple of functions that were only called in unittests. BUG=3353,chromium:81439 TEST=none R=andrew@webrtc.org, bjornv@webrtc.org Review URL: https://webrtc-codereview.appspot.com/23389004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7060 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -17,14 +17,16 @@
|
||||
|
||||
#include "webrtc/common_audio/signal_processing/include/signal_processing_library.h"
|
||||
|
||||
int WebRtcSpl_GetScalingSquare(int16_t *in_vector, int in_vector_length, int times)
|
||||
int16_t WebRtcSpl_GetScalingSquare(int16_t* in_vector,
|
||||
int in_vector_length,
|
||||
int times)
|
||||
{
|
||||
int nbits = WebRtcSpl_GetSizeInBits(times);
|
||||
int16_t nbits = WebRtcSpl_GetSizeInBits(times);
|
||||
int i;
|
||||
int16_t smax = -1;
|
||||
int16_t sabs;
|
||||
int16_t *sptr = in_vector;
|
||||
int t;
|
||||
int16_t t;
|
||||
int looptimes = in_vector_length;
|
||||
|
||||
for (i = looptimes; i > 0; i--)
|
||||
|
||||
Reference in New Issue
Block a user