Iir: change variable types from std::vector<StkFloat>::size_type to size_t

This commit is contained in:
Ariel Elkin
2014-04-11 23:50:52 +02:00
parent 79cdf449b5
commit 1a2509ead9

View File

@@ -113,7 +113,7 @@ protected:
inline StkFloat Iir :: tick( StkFloat input )
{
std::vector<StkFloat>::size_type i;
size_t i;
outputs_[0] = 0.0;
inputs_[0] = gain_ * input;
@@ -142,7 +142,7 @@ inline StkFrames& Iir :: tick( StkFrames& frames, unsigned int channel )
#endif
StkFloat *samples = &frames[channel];
std::vector<StkFloat>::size_type i;
size_t i;
unsigned int hop = frames.channels();
for ( unsigned int j=0; j<frames.frames(); j++, samples += hop ) {
outputs_[0] = 0.0;
@@ -176,7 +176,7 @@ inline StkFrames& Iir :: tick( StkFrames& iFrames, StkFrames& oFrames, unsigned
StkFloat *iSamples = &iFrames[iChannel];
StkFloat *oSamples = &oFrames[oChannel];
std::vector<StkFloat>::size_type i;
size_t i;
unsigned int iHop = iFrames.channels(), oHop = oFrames.channels();
for ( unsigned int j=0; j<iFrames.frames(); j++, iSamples += iHop, oSamples += oHop ) {
outputs_[0] = 0.0;