Mercurial > jmeCapture
view src/com/aurellem/capture/audio/SoundProcessor.java @ 71:2c50a0c99715
remove xuggle, since I will never use it.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Mon, 10 Mar 2014 18:54:35 -0400 |
parents | 23e3df41db3c |
children |
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, and there11 * are no more samples to process. This happens at the latest12 * when the Application is shutting down.13 */14 void cleanup();16 /**17 *18 * Called whenever there are new audio samples to process. The19 * audioSamples ByteBuffer contains 3D audio data rendered by20 * OpenAL.21 *22 * @param audioSamples a ByteBuffer containing processed audio23 * samples24 * @param numSamples the number of samples, in bytes, that are25 * valid26 * @param format the format of the audio samples in audioSamples27 */28 void process(ByteBuffer audioSamples, int numSamples, AudioFormat format);30 }