Mercurial > jmeCapture
changeset 23:b643413c3aba
going to improve WaveFileWriter
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sun, 30 Oct 2011 04:22:14 -0700 |
parents | c7a07eefaeea |
children | 5f616cc420dd |
files | src/com/aurellem/capture/audio/WaveFileWriter.java |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
1.1 --- a/src/com/aurellem/capture/audio/WaveFileWriter.java Sun Oct 30 01:19:11 2011 -0700 1.2 +++ b/src/com/aurellem/capture/audio/WaveFileWriter.java Sun Oct 30 04:22:14 2011 -0700 1.3 @@ -11,6 +11,8 @@ 1.4 import javax.sound.sampled.AudioInputStream; 1.5 import javax.sound.sampled.AudioSystem; 1.6 1.7 +import org.tritonus.sampled.file.WaveAudioOutputStream; 1.8 + 1.9 public class WaveFileWriter implements SoundProcessor { 1.10 1.11 public Vector<Byte> fullWaveData = new Vector<Byte>(); 1.12 @@ -20,6 +22,10 @@ 1.13 this.targetFile = targetFile; 1.14 } 1.15 1.16 + 1.17 + WaveAudioOutputStream wao; 1.18 + 1.19 + 1.20 public void cleanup() { 1.21 byte[] data = new byte[this.fullWaveData.size()]; 1.22