as.clynx.audio.mux.streams
Class DefaultChannelProvider

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet<java.lang.Integer>
              extended by as.clynx.audio.mux.streams.DefaultChannelProvider
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<java.lang.Integer>, java.util.Collection<java.lang.Integer>, java.util.Set<java.lang.Integer>
Direct Known Subclasses:
SequencedChannelProvider

public class DefaultChannelProvider
extends java.util.HashSet<java.lang.Integer>

The class DefaultChannelProvider.java defines the ordering of channels in wich the streams are played and collects finished streams.

Version:
cLynx v.1.2, JDK 6.0: 12.10.2007
Author:
Andreas Senfter - andreas@senfters.com
See Also:
Serialized Form

Constructor Summary
DefaultChannelProvider()
           
 
Method Summary
 int nextStreamIndexFor(int curr_channel)
          return the next track for the current channel
 void reset(int samplesNO)
          reset before every frame
 
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

DefaultChannelProvider

public DefaultChannelProvider()
Method Detail

reset

public void reset(int samplesNO)
reset before every frame

Parameters:
samplesNO -

nextStreamIndexFor

public int nextStreamIndexFor(int curr_channel)
return the next track for the current channel

Parameters:
curr_channel -
Returns:
the next track for the current channel