/** * Does a list of record tasks. * * @param transStack * @param tasks */ protected void doTasks(Stack<CompoundRecord> transStack, List<? extends RecordTask> tasks) { if (tasks == null || tasks.isEmpty()) return; for (int i = 0; i < tasks.size(); i++) { RecordTask task = tasks.get(i); task.doTask(this, transStack); } }
/** * Wait for audio to become available and return an audio input stream close to the specified * format * * @param format The desired audio format */ public AudioInputStream getAudioInputStream(AudioFormat format) throws LineUnavailableException { RecordTask task = new RecordTask(format); addTask(task); return task.getAudioInputStream(); }