Project

General

Profile

« Previous | Next » 

Revision a595ee16

Added by Leszek Koltunski almost 8 years ago

New API tested.

View differences:

src/main/java/org/distorted/library/EffectQueueFragment.java
72 72
   
73 73
    for(int i=0; i<mNumEffects; i++)
74 74
      {
75
      if( mInter[0][i]==null ) continue;
76
      
77
      if( mInter[1][i]!=null ) mInter[1][i].interpolateMain(mBuf, 4*i, mCurrentDuration[i]);
78
        
79
      if( mInter[0][i].interpolateMain(mUniforms ,NUM_UNIFORMS*i, mCurrentDuration[i], step) )
75
      if( mInter[0][i]!=null && mInter[0][i].interpolateMain(mUniforms ,NUM_UNIFORMS*i, mCurrentDuration[i], step) )
80 76
        {
81 77
        for(int j=0; j<mNumListeners; j++)   
82 78
          EffectMessageSender.newMessage( mListeners.elementAt(j),
......
93 89
          continue;
94 90
          }
95 91
        }
96
           
92

  
93
      if( mInter[1][i]!=null ) mInter[1][i].interpolateMain(mBuf, 4*i, mCurrentDuration[i]);
94

  
97 95
      mCurrentDuration[i] += step;
98 96
      }
99 97
   

Also available in: Unified diff