mirror of
https://github.com/thestk/stk
synced 2026-02-07 09:46:16 +00:00
Merge pull request #18 from arielelkin/fix-variable-types-in-Iir
fix variable types in Iir
This commit is contained in:
@@ -113,7 +113,7 @@ protected:
|
|||||||
|
|
||||||
inline StkFloat Iir :: tick( StkFloat input )
|
inline StkFloat Iir :: tick( StkFloat input )
|
||||||
{
|
{
|
||||||
unsigned int i;
|
size_t i;
|
||||||
|
|
||||||
outputs_[0] = 0.0;
|
outputs_[0] = 0.0;
|
||||||
inputs_[0] = gain_ * input;
|
inputs_[0] = gain_ * input;
|
||||||
@@ -142,7 +142,8 @@ inline StkFrames& Iir :: tick( StkFrames& frames, unsigned int channel )
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
StkFloat *samples = &frames[channel];
|
StkFloat *samples = &frames[channel];
|
||||||
unsigned int i, hop = frames.channels();
|
size_t i;
|
||||||
|
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;
|
||||||
inputs_[0] = gain_ * *samples;
|
inputs_[0] = gain_ * *samples;
|
||||||
@@ -175,7 +176,8 @@ 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];
|
||||||
unsigned int i, iHop = iFrames.channels(), oHop = oFrames.channels();
|
size_t i;
|
||||||
|
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;
|
||||||
inputs_[0] = gain_ * *iSamples;
|
inputs_[0] = gain_ * *iSamples;
|
||||||
|
|||||||
Reference in New Issue
Block a user