public void dispose() {
      for (Stage stage : mStages) {
        stage.dispose();
      }

      mStages.clear();
      mDecimator.dispose();
      mDecimator = null;
      mFirstStage = null;
      mStages = null;
    }
 public void setListener(ComplexSampleListener listener) {
   mDecimator.setListener(listener);
 }