Mercurial > jmeCapture
view src/com/aurellem/capture/audio/SoundProcessor.java @ 49:121b6d7e4d3f
more friendly AppSettings handling
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Dec 2011 13:22:27 -0600 |
parents | 784a3f4e6202 |
children | 23e3df41db3c |
line wrap: on
line source
1 package com.aurellem.capture.audio;3 import java.nio.ByteBuffer;5 import javax.sound.sampled.AudioFormat;7 public interface SoundProcessor {9 /**10 * Called when the SoundProcessor is being destroyed, and11 * there are no more samples to process. This happens at the12 * latest when the Application is shutting down.13 *14 */15 void cleanup();17 /**18 *19 * Called whenever there are new audio samples to process. The20 * audioSamples ByteBuffer contains 3D audio data rendered by21 * OpenAL.22 *23 * @param audioSamples a ByteBuffer containing processed audio24 * samples25 * @param numSamples the number of samples, in bytes, that are valid26 * @param format the format of the audio samples in audioSamples27 */28 void process(ByteBuffer audioSamples, int numSamples, AudioFormat format);30 }