Remove some unused fields
2 files changed, 7 insertions(+), 12 deletions(-)

M speex/resample.c
M src/Resampler.cpp
M speex/resample.c +6 -0
@@ 1229,6 1229,12 @@
 st->mem[i] = 0;
     }
 
+    for (i = 0; i < st->nb_channels; i++) {
+        st->last_sample[i] = 0;
+        st->magic_samples[i] = 0;
+        st->samp_frac_num[i] = 0;
+    }
+
     return RESAMPLER_ERR_SUCCESS;
 }
 

          
M src/Resampler.cpp +1 -12
@@ 617,7 617,6 @@
 SRC_STATE *m_src;
     float *m_iin;
     float *m_iout;
-    double m_lastRatio;
     int m_channels;
     int m_iinsize;
     int m_ioutsize;

          
@@ 629,7 628,6 @@
 m_src(0),
     m_iin(0),
     m_iout(0),
-    m_lastRatio(1.0),
     m_channels(channels),
     m_iinsize(0),
     m_ioutsize(0),

          
@@ 717,8 715,6 @@
 v_deinterleave(out, m_iout, m_channels, (int)data.output_frames_gen);
     }
 
-    m_lastRatio = ratio;
-
     return (int)data.output_frames_gen;
 }
 

          
@@ 750,8 746,6 @@
 #endif
     }
 
-    m_lastRatio = ratio;
-
     return (int)data.output_frames_gen;
 }
 

          
@@ 806,7 800,6 @@
 m_src(0),
     m_iin(0),
     m_iout(0),
-    m_lastRatio(1.f),
     m_channels(channels),
     m_iinsize(0),
     m_ioutsize(0),

          
@@ 905,8 898,6 @@
 v_deinterleave(out, m_iout, m_channels, output_frames_gen);
     }
 
-    m_lastRatio = ratio;
-
     return output_frames_gen;
 }
 

          
@@ 943,8 934,6 @@
 throw Resampler::ImplementationError; //!!! of course, need to catch this!
     }
 
-    m_lastRatio = ratio;
-
     return output_frames_gen;
 }
 

          
@@ 1010,7 999,7 @@
 m_channels(channels),
     m_iinsize(0),
     m_ioutsize(0),
-    m_lastratio(1),
+    m_lastratio(-1.0),
     m_initial(true),
     m_debugLevel(debugLevel)
 {