comparison src/com/aurellem/capture/audio/WaveFileWriter.java @ 44:388f9d062012

adapting to execellent new jmeSystem changes
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Dec 2011 12:18:55 -0600
parents c4bfbf5d090e
children d799a0278cc9
comparison
equal deleted inserted replaced
43:2f129118e2d6 44:388f9d062012
21 private boolean initialized = false; 21 private boolean initialized = false;
22 22
23 public WaveFileWriter(File targetFile) throws FileNotFoundException{ 23 public WaveFileWriter(File targetFile) throws FileNotFoundException{
24 tos = new TNonSeekableDataOutputStream( 24 tos = new TNonSeekableDataOutputStream(
25 new FileOutputStream(targetFile)); 25 new FileOutputStream(targetFile));
26
27
28 } 26 }
29 27
30 public void init(AudioFormat format){ 28 public void init(AudioFormat format){
31 wao = new WaveAudioOutputStream(format,AudioSystem.NOT_SPECIFIED, tos); 29 wao = new WaveAudioOutputStream(format,AudioSystem.NOT_SPECIFIED, tos);
32 } 30 }