Mercurial > jmeCapture
diff src/com/aurellem/capture/Capture.java @ 24:5f616cc420dd
improved WaveFileWriter using tritonus
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sun, 30 Oct 2011 04:42:40 -0700 |
parents | d10f4d4ff15a |
children | 784a3f4e6202 |
line wrap: on
line diff
1.1 --- a/src/com/aurellem/capture/Capture.java Sun Oct 30 04:22:14 2011 -0700 1.2 +++ b/src/com/aurellem/capture/Capture.java Sun Oct 30 04:42:40 2011 -0700 1.3 @@ -56,13 +56,14 @@ 1.4 AppSettings settings = new AppSettings(true); 1.5 settings.setAudioRenderer("Send"); 1.6 app.setSettings(settings); 1.7 + final WaveFileWriter writer = new WaveFileWriter(file); 1.8 1.9 Callable<Object> thunk = new Callable<Object>(){ 1.10 public Object call(){ 1.11 AudioRenderer ar = app.getAudioRenderer(); 1.12 if (ar instanceof MultiListener){ 1.13 MultiListener ml = (MultiListener)ar; 1.14 - ml.registerSoundProcessor(new WaveFileWriter(file)); 1.15 + ml.registerSoundProcessor(writer); 1.16 } 1.17 return null; 1.18 }