Mercurial > jmeCapture
diff src/com/aurellem/capture/audio/WaveFileWriter.java @ 30:be37291c62b8
propagated AudioFormat to other classes.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sun, 30 Oct 2011 10:11:21 -0700 |
parents | 95648b0c12bc |
children | b67ffa8aa0b9 |
line wrap: on
line diff
1.1 --- a/src/com/aurellem/capture/audio/WaveFileWriter.java Sun Oct 30 10:06:38 2011 -0700 1.2 +++ b/src/com/aurellem/capture/audio/WaveFileWriter.java Sun Oct 30 10:11:21 2011 -0700 1.3 @@ -31,7 +31,7 @@ 1.4 } 1.5 1.6 1.7 - public void process(ByteBuffer audioSamples, int numSamples) { 1.8 + public void process(ByteBuffer audioSamples, int numSamples, AudioFormat format) { 1.9 byte[] data = new byte[numSamples]; 1.10 audioSamples.get(data, 0, numSamples); 1.11 try {wao.write(data, 0, numSamples);}