added a "const"

This commit is contained in:
Volker Fischer 2014-01-05 20:47:35 +00:00
parent 4baf2c5ef5
commit 90cbb22993
2 changed files with 3 additions and 2 deletions

View file

@ -27,7 +27,7 @@
/* Implementation *************************************************************/
// Input level meter implementation --------------------------------------------
void CStereoSignalLevelMeter::Update ( CVector<short>& vecsAudio )
void CStereoSignalLevelMeter::Update ( const CVector<short>& vecsAudio )
{
// get the stereo vector size
const int iStereoVecSize = vecsAudio.Size();
@ -45,6 +45,7 @@ void CStereoSignalLevelMeter::Update ( CVector<short>& vecsAudio )
//
short sMaxL = 0;
short sMaxR = 0;
for ( int i = 0; i < iStereoVecSize; i += 6 ) // 2 * 3 = 6 -> stereo
{
// left channel

View file

@ -483,7 +483,7 @@ class CStereoSignalLevelMeter
public:
CStereoSignalLevelMeter() { Reset(); }
void Update ( CVector<short>& vecsAudio );
void Update ( const CVector<short>& vecsAudio );
double MicLevelLeft() { return CalcLogResult ( dCurLevelL ); }
double MicLevelRight() { return CalcLogResult ( dCurLevelR ); }
void Reset()