uk.org.toot.audio.core
Class AudioProcessAdapter

java.lang.Object
  extended by uk.org.toot.audio.core.AudioProcessAdapter
All Implemented Interfaces:
AudioProcess

public abstract class AudioProcessAdapter
extends java.lang.Object
implements AudioProcess

AudioProcessAdapter adapts an AudioProcess instance, hence by making a concrete implementation you can override operations of that instance.

Author:
st

Field Summary
 
Fields inherited from interface uk.org.toot.audio.core.AudioProcess
AUDIO_DISCONNECT, AUDIO_OK
 
Constructor Summary
AudioProcessAdapter(AudioProcess process)
           
 
Method Summary
 void close()
          Close any resources opened by this AudioProcess.
 void open()
          Open any resources required by this AudioProcess.
 int processAudio(AudioBuffer buf)
          Process the supplied buffer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioProcessAdapter

public AudioProcessAdapter(AudioProcess process)
Method Detail

open

public void open()
          throws java.lang.Exception
Description copied from interface: AudioProcess
Open any resources required by this AudioProcess.

Specified by:
open in interface AudioProcess
Throws:
java.lang.Exception

processAudio

public int processAudio(AudioBuffer buf)
Description copied from interface: AudioProcess
Process the supplied buffer

Specified by:
processAudio in interface AudioProcess
Parameters:
buf - the AudioBuffer to process.
Returns:
int AUDIO_OK or AUDIO_DISCONNECT.

close

public void close()
           throws java.lang.Exception
Description copied from interface: AudioProcess
Close any resources opened by this AudioProcess.

Specified by:
close in interface AudioProcess
Throws:
java.lang.Exception


Copyright © 2004, 2005, 2006, 2007 Steve Taylor. All Rights Reserved.