| 399 | | System.err.println("CapturePlayback's WAV file for recording wavFile1 is:" + wavFile1); |
|---|
| 400 | | System.err.println("CapturePlayback's WAV file for recording wavFile2 is:" + wavFile2); |
|---|
| 401 | | System.err.println("CapturePlayback's WAV file for recording wavFile3 is:" + wavFile3); |
|---|
| 402 | | System.err.println("CapturePlayback's WAV file for recording wavFile4 is:" + wavFile4); |
|---|
| 403 | | System.err.println("CapturePlayback's WAV file for recording wavFile5 is:" + wavFile5); |
|---|
| 404 | | System.err.println("CapturePlayback's WAV file for recording wavFile1 is:" + wavFile6); |
|---|
| 405 | | System.err.println("CapturePlayback's WAV file for recording wavFile2 is:" + wavFile7); |
|---|
| 406 | | System.err.println("CapturePlayback's WAV file for recording wavFile3 is:" + wavFile8); |
|---|
| 407 | | System.err.println("CapturePlayback's WAV file for recording wavFile4 is:" + wavFile9); |
|---|
| 408 | | System.err.println("CapturePlayback's WAV file for recording wavFile5 is:" + wavFile10); |
|---|
| 1989 | | |
|---|
| 1990 | | /** |
|---|
| 1991 | | * Updates the progress bar during the compression stage |
|---|
| 1992 | | */ |
|---|
| 1993 | | class CompressionMonitor implements Runnable { |
|---|
| 1994 | | |
|---|
| 1995 | | Thread thread; |
|---|
| 1996 | | |
|---|
| 1997 | | public void start() { |
|---|
| 1998 | | errStr = null; |
|---|
| 1999 | | thread = new Thread(this); |
|---|
| 2000 | | thread.setName("CompressionMonitor"); |
|---|
| 2001 | | thread.start(); |
|---|
| 2002 | | } |
|---|
| 2003 | | |
|---|
| 2004 | | public void stop() { |
|---|
| 2005 | | thread = null; |
|---|
| 2006 | | } |
|---|
| 2007 | | |
|---|
| 2008 | | public void run() { |
|---|
| 2009 | | while ((thread != null)) { |
|---|
| 2010 | | |
|---|
| 2011 | | // NOT DONE: QUERY THE ENCODER TO FIND THE AMOUNT ENCODED, UPDATE THE VIEWER |
|---|
| 2012 | | // NOT DONE: QUERY THE ENCODER TO FIND THE AMOUNT ENCODED, UPDATE THE VIEWER |
|---|
| 2013 | | // NOT DONE: QUERY THE ENCODER TO FIND THE AMOUNT ENCODED, UPDATE THE VIEWER |
|---|
| 2014 | | |
|---|
| 2015 | | progBar.setValue((int) (100L * encoder.getNumRawBytesProcessed() / totalBytesWritten) ); |
|---|
| 2016 | | |
|---|
| 2017 | | try { |
|---|
| 2018 | | Thread.sleep(1500L); |
|---|
| 2019 | | } catch(InterruptedException err) { |
|---|
| 2020 | | } |
|---|
| 2021 | | } |
|---|
| 2022 | | } |
|---|
| 2023 | | |
|---|
| 2024 | | } // End class CompressionMonitor |
|---|