コード例 #1
0
 @Override
 protected void doProcessing() {
   while (!Thread.interrupted()) {
     preprocessor.processFrame(buffer);
     HoarsenessProcessor.processFrame(buffer);
     postprocessor.processFrame(buffer);
   }
 }
コード例 #2
0
  private void disposeProcessors() {
    if (preprocessor != null) {
      preprocessor.dispose();
      preprocessor = null;
    }

    if (postprocessor != null) {
      postprocessor.dispose();
      postprocessor = null;
    }
  }