net.sf.fmj.filtergraph
Class MuxNode

java.lang.Object
  extended by net.sf.fmj.filtergraph.Node
      extended by net.sf.fmj.filtergraph.MuxNode

public class MuxNode
extends Node

A node in a filter graph for a Multiplexer (one input track only). The graph will have a MuxNode for each input to a Multiplexer, with the same Multiplexer.

Author:
Ken Larson

Field Summary
 
Fields inherited from class net.sf.fmj.filtergraph.Node
logger
 
Constructor Summary
MuxNode(Multiplexer mux, Format inputFormat, int destTrack)
           
 
Method Summary
 void addDestLink(Link n)
           
 Node duplicate()
           
 Format getInputFormat()
           
 Multiplexer getMultiplexer()
           
 int getPlugInType()
           
 int process(Buffer input, int sourceTrackNumber, int destTrackNumber, int flags)
          sourceTrackNumber only used for demux, and destTrackNumber only used for mux.
 
Methods inherited from class net.sf.fmj.filtergraph.Node
close, getDestLink, getDestLink, getDestLink, getInputPin, getInputPinByTrack, getNumDestLinks, getNumInputPins, getNumOutputPins, getOutputBuffer, getOutputPin, getOutputPinByTrack, getPlugIn, open, print, propagateDuplicate, removeDestLink, setInputPin, setOutputBuffer, setOutputPin, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MuxNode

public MuxNode(Multiplexer mux,
               Format inputFormat,
               int destTrack)
Method Detail

getPlugInType

public int getPlugInType()
Specified by:
getPlugInType in class Node

duplicate

public Node duplicate()
Specified by:
duplicate in class Node

getInputFormat

public Format getInputFormat()
Specified by:
getInputFormat in class Node

getMultiplexer

public Multiplexer getMultiplexer()

process

public int process(Buffer input,
                   int sourceTrackNumber,
                   int destTrackNumber,
                   int flags)
Description copied from class: Node
sourceTrackNumber only used for demux, and destTrackNumber only used for mux.

Specified by:
process in class Node

addDestLink

public void addDestLink(Link n)
Overrides:
addDestLink in class Node