uk.org.toot.audio.core
Class AudioProcessChain

java.lang.Object
  extended by uk.org.toot.audio.core.AudioProcessChain
All Implemented Interfaces:
AudioProcess
Direct Known Subclasses:
AudioMixerStrip

public class AudioProcessChain
extends java.lang.Object
implements AudioProcess

A composite AudioProcess that processes its child processes sequentially and modifies its structure to track its associated AudioControlsChain in a thread-safe manner. The buffer is of little concern, we just pass it to the right things in the right order. Structural changes should use the Command pattern in order to decouple real-time UI changes from process-time processing which occurs 'before' nominal real-time. Commands are: Move 'name' before 'name' Insert new before 'name' Delete 'name'


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

Constructor Detail

AudioProcessChain

public AudioProcessChain(AudioControlsChain controlChain)
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 buffer)
Description copied from interface: AudioProcess
Process the supplied buffer

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

debugProcessAudio

public int debugProcessAudio(AudioBuffer buffer)

close

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

Specified by:
close in interface AudioProcess

getName

public java.lang.String getName()

getId

public int getId()


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