# HG changeset patch # User Robert McIntyre # Date 1319975019 25200 # Node ID 95648b0c12bc87a132f19d989bf60e37e7f58ae7 # Parent 25fcf5fda505396e7c54ce55089837d66a53f05f code reformating diff -r 25fcf5fda505 -r 95648b0c12bc src/com/aurellem/capture/audio/WaveFileWriter.java --- a/src/com/aurellem/capture/audio/WaveFileWriter.java Sun Oct 30 04:43:05 2011 -0700 +++ b/src/com/aurellem/capture/audio/WaveFileWriter.java Sun Oct 30 04:43:39 2011 -0700 @@ -21,7 +21,8 @@ public WaveFileWriter(File targetFile) throws FileNotFoundException{ wao = new WaveAudioOutputStream(new AudioFormat(44100.0f, 32, 1, true, false), AudioSystem.NOT_SPECIFIED, - (TDataOutputStream) new TNonSeekableDataOutputStream(new FileOutputStream(targetFile))); + (TDataOutputStream) new TNonSeekableDataOutputStream( + new FileOutputStream(targetFile))); } public void cleanup() { @@ -33,7 +34,6 @@ public void process(ByteBuffer audioSamples, int numSamples) { byte[] data = new byte[numSamples]; audioSamples.get(data, 0, numSamples); - try {wao.write(data, 0, numSamples);} catch (IOException e) {e.printStackTrace();} }