uk.org.toot.audio.core
Class AudioProcessChain
java.lang.Object
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'
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AudioProcessChain
public AudioProcessChain(AudioControlsChain controlChain)
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.