@Override protected void doProcessing() { while (!Thread.interrupted()) { preprocessor.processFrame(buffer); HoarsenessProcessor.processFrame(buffer); postprocessor.processFrame(buffer); } }
private void disposeProcessors() { if (preprocessor != null) { preprocessor.dispose(); preprocessor = null; } if (postprocessor != null) { postprocessor.dispose(); postprocessor = null; } }