diff src/com/aurellem/capture/audio/WaveFileWriter.java @ 26:95648b0c12bc

code reformating
author Robert McIntyre <rlm@mit.edu>
date Sun, 30 Oct 2011 04:43:39 -0700
parents 25fcf5fda505
children 5249c8a9603c be37291c62b8
line wrap: on
line diff
     1.1 --- a/src/com/aurellem/capture/audio/WaveFileWriter.java	Sun Oct 30 04:43:05 2011 -0700
     1.2 +++ b/src/com/aurellem/capture/audio/WaveFileWriter.java	Sun Oct 30 04:43:39 2011 -0700
     1.3 @@ -21,7 +21,8 @@
     1.4  	public WaveFileWriter(File targetFile) throws FileNotFoundException{
     1.5  		wao = new WaveAudioOutputStream(new AudioFormat(44100.0f, 32, 1, true, false),
     1.6  				AudioSystem.NOT_SPECIFIED, 
     1.7 -				(TDataOutputStream) new TNonSeekableDataOutputStream(new FileOutputStream(targetFile)));
     1.8 +				(TDataOutputStream) new TNonSeekableDataOutputStream(
     1.9 +						new FileOutputStream(targetFile)));
    1.10  	}
    1.11  
    1.12  	public void cleanup() {
    1.13 @@ -33,7 +34,6 @@
    1.14  	public void process(ByteBuffer audioSamples, int numSamples) {
    1.15  		byte[] data = new byte[numSamples];
    1.16  		audioSamples.get(data, 0, numSamples);
    1.17 -		
    1.18  		try {wao.write(data, 0, numSamples);}
    1.19  		catch (IOException e) {e.printStackTrace();}
    1.20  	}