mirror of
https://github.com/thestk/stk
synced 2026-04-19 22:16:54 +00:00
Iir: change variable types from std::vector<StkFloat>::size_type to size_t
This commit is contained in:
@@ -113,7 +113,7 @@ protected:
|
|||||||
|
|
||||||
inline StkFloat Iir :: tick( StkFloat input )
|
inline StkFloat Iir :: tick( StkFloat input )
|
||||||
{
|
{
|
||||||
std::vector<StkFloat>::size_type i;
|
size_t i;
|
||||||
|
|
||||||
outputs_[0] = 0.0;
|
outputs_[0] = 0.0;
|
||||||
inputs_[0] = gain_ * input;
|
inputs_[0] = gain_ * input;
|
||||||
@@ -142,7 +142,7 @@ inline StkFrames& Iir :: tick( StkFrames& frames, unsigned int channel )
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
StkFloat *samples = &frames[channel];
|
StkFloat *samples = &frames[channel];
|
||||||
std::vector<StkFloat>::size_type i;
|
size_t i;
|
||||||
unsigned int hop = frames.channels();
|
unsigned int hop = frames.channels();
|
||||||
for ( unsigned int j=0; j<frames.frames(); j++, samples += hop ) {
|
for ( unsigned int j=0; j<frames.frames(); j++, samples += hop ) {
|
||||||
outputs_[0] = 0.0;
|
outputs_[0] = 0.0;
|
||||||
@@ -176,7 +176,7 @@ inline StkFrames& Iir :: tick( StkFrames& iFrames, StkFrames& oFrames, unsigned
|
|||||||
|
|
||||||
StkFloat *iSamples = &iFrames[iChannel];
|
StkFloat *iSamples = &iFrames[iChannel];
|
||||||
StkFloat *oSamples = &oFrames[oChannel];
|
StkFloat *oSamples = &oFrames[oChannel];
|
||||||
std::vector<StkFloat>::size_type i;
|
size_t i;
|
||||||
unsigned int iHop = iFrames.channels(), oHop = oFrames.channels();
|
unsigned int iHop = iFrames.channels(), oHop = oFrames.channels();
|
||||||
for ( unsigned int j=0; j<iFrames.frames(); j++, iSamples += iHop, oSamples += oHop ) {
|
for ( unsigned int j=0; j<iFrames.frames(); j++, iSamples += iHop, oSamples += oHop ) {
|
||||||
outputs_[0] = 0.0;
|
outputs_[0] = 0.0;
|
||||||
|
|||||||
Reference in New Issue
Block a user