de.gulden.framework.jjack

Interface JJackAudioProducer

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
voidaddMonitor(JJackAudioConsumer c)
Adds a monitor processor after this processor.
JJackAudioProducergetChained()
Returns the next audio processor in chain.
CollectiongetMonitors()
Returns all monitor processors currently connected after this processor.
voidremoveChained(JJackAudioProducer p)
Removes p as the next audio processor in chain, if it is the currently chained processor.
voidremoveMonitor(JJackAudioConsumer c)
Removes a monitor processor from this processor.
voidsetChained(JJackAudioProducer p)
Sets the next audio processor in chain.

Method Detail

addMonitor

public 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

getChained

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

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

getMonitors

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

Returns: Collection of JJackAudioConsumer

removeChained

public 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

removeMonitor

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

Parameters: c the monitoring audio processor to be removed

setChained

public 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