private void stopRecording() { if (audioStreamProcessor.isStopped()) return; audioStreamProcessor.stop(); }
private void start() throws IOException { Log.i(LOG_TAG, "Starting audio recorder"); audioStreamProcessor = new AudioStreamProcessor(samplingSpec, null); audioStreamProcessor.start(); }