de.gulden.framework.jjack
Interface JJackAudioProducer

All Superinterfaces:
JJackAudioProcessor
All Known Implementing Classes:
JJackClient, JJackMixer

public interface JJackAudioProducer
extends JJackAudioProcessor

Interface to model a JJackAudioProcessor's role as a client that generates audio output. Other audio processors can be connected via the monitor- and chained-event-sets.

Version:
0.3
Author:
Jens Gulden

Method Summary
 void addMonitor(JJackAudioConsumer c)
          Adds a monitor processor after this processor.
 JJackAudioProducer getChained()
          Returns the next audio processor in chain.
 java.util.Collection getMonitors()
          Returns all monitor processors currently connected after this processor.
 void removeChained(JJackAudioProducer p)
          Removes p as the next audio processor in chain, if it is the currently chained processor.
 void removeMonitor(JJackAudioConsumer c)
          Removes a monitor processor from this processor.
 void setChained(JJackAudioProducer p)
          Sets the next audio processor in chain.
 
Methods inherited from interface de.gulden.framework.jjack.JJackAudioProcessor
process
 

Method Detail

addMonitor

void addMonitor(JJackAudioConsumer c)
Adds a monitor processor after this processor. The monitor processor will get the output of this processor as its own input.

Parameters:
c - the monitoring audio processor to be added

removeMonitor

void removeMonitor(JJackAudioConsumer c)
Removes a monitor processor from this processor.

Parameters:
c - the monitoring audio processor to be removed

getMonitors

java.util.Collection getMonitors()
Returns all monitor processors currently connected after this processor.

Returns:
Collection of JJackAudioConsumer

setChained

void setChained(JJackAudioProducer p)
Sets the next audio processor in chain. The chained processor will get the output of this processor as its own input.

Parameters:
p - the next audio processor in chain

removeChained

void removeChained(JJackAudioProducer p)
Removes p as the next audio processor in chain, if it is the currently chained processor.

Parameters:
p - the current audio processor in chain

getChained

JJackAudioProducer getChained()
Returns the next audio processor in chain.

Returns:
the next audio processor in chain, null if no processor is chained to this