I
- type of the input valuesO
- type of the output valuespublic interface SignalSplit<I,O> extends SignalProcessor<I,O>
SignalProcessor
that splits the signal into multiple signals and as such has
multiple children - per channel.
This can be useful e.g. to split up a stereo signal into two distinct pipelines.
In order to simply duplicate the signal, without actually splitting it into different parts,
use NoopSignalProcessor
.
Join
,
NoopSignalProcessor
Modifier and Type | Method and Description |
---|---|
<O2> SignalProcessor<O,O2> |
connectTo(int channel,
SignalProcessor<O,O2> signalProcessor)
Registers a child processor for a specific channel.
|
<O2> SignalProcessor<O,O2> |
disconnectFrom(int channel,
SignalProcessor<O,O2> signalProcessor)
Removes a child processor from a specific channel.
|
int |
getChannelCount()
Number of channels the signal is split up into.
|
SignalProcessor<O,?>[] |
getConnectedProcessors(int channel)
Lists all registered processors for a specific channel or band.
|
connectTo, disconnectFrom, flush, getConnectedProcessors, getId, getOutput, process
<O2> SignalProcessor<O,O2> connectTo(int channel, SignalProcessor<O,O2> signalProcessor)
O2
- output type of the processor we want to connect tochannel
- channelsignalProcessor
- processorSignalProcessor.disconnectFrom(com.tagtraum.jipes.SignalProcessor)
,
SignalProcessor.getConnectedProcessors()
<O2> SignalProcessor<O,O2> disconnectFrom(int channel, SignalProcessor<O,O2> signalProcessor)
O2
- output type of the processor we want to disconnect fromchannel
- channelsignalProcessor
- processorSignalProcessor.connectTo(com.tagtraum.jipes.SignalProcessor)
,
SignalProcessor.getConnectedProcessors()
SignalProcessor<O,?>[] getConnectedProcessors(int channel)
channel
- channel or bandnull
SignalProcessor.disconnectFrom(com.tagtraum.jipes.SignalProcessor)
,
SignalProcessor.connectTo(com.tagtraum.jipes.SignalProcessor)
int getChannelCount()
Copyright © 2011–2020 tagtraum industries incorporated. All rights reserved.