comparison src/com/aurellem/capture/audio/SoundProcessor.java @ 65:23e3df41db3c

reformatting for web
author Robert McIntyre <rlm@mit.edu>
date Sat, 11 Feb 2012 12:25:26 -0700
parents 784a3f4e6202
children
comparison
equal deleted inserted replaced
64:155c70b7e6de 65:23e3df41db3c
5 import javax.sound.sampled.AudioFormat; 5 import javax.sound.sampled.AudioFormat;
6 6
7 public interface SoundProcessor { 7 public interface SoundProcessor {
8 8
9 /** 9 /**
10 * Called when the SoundProcessor is being destroyed, and 10 * Called when the SoundProcessor is being destroyed, and there
11 * there are no more samples to process. This happens at the 11 * are no more samples to process. This happens at the latest
12 * latest when the Application is shutting down. 12 * when the Application is shutting down.
13 *
14 */ 13 */
15 void cleanup(); 14 void cleanup();
16 15
17 /** 16 /**
18 * 17 *
20 * audioSamples ByteBuffer contains 3D audio data rendered by 19 * audioSamples ByteBuffer contains 3D audio data rendered by
21 * OpenAL. 20 * OpenAL.
22 * 21 *
23 * @param audioSamples a ByteBuffer containing processed audio 22 * @param audioSamples a ByteBuffer containing processed audio
24 * samples 23 * samples
25 * @param numSamples the number of samples, in bytes, that are valid 24 * @param numSamples the number of samples, in bytes, that are
25 * valid
26 * @param format the format of the audio samples in audioSamples 26 * @param format the format of the audio samples in audioSamples
27 */ 27 */
28 void process(ByteBuffer audioSamples, int numSamples, AudioFormat format); 28 void process(ByteBuffer audioSamples, int numSamples, AudioFormat format);
29 29
30 } 30 }