Copyright 2012-04-26 Werner Randelshofer

org.monte.media.seq
Class SEQTrack

java.lang.Object
  extended by org.monte.media.seq.SEQTrack
All Implemented Interfaces:
Track

public class SEQTrack
extends java.lang.Object
implements Track

SEQTrack.

Version:
1.0 2011-02-20 Created.
Author:
Werner Randelshofer

Constructor Summary
SEQTrack(SEQDemultiplexer demux)
           
 
Method Summary
 long getPosition()
          Gets the read position.
 long getSampleCount()
          Returns the numbers of samples in this track.
 void read(Buffer buf)
          Reads a sample from the input stream.
 void setPosition(long pos)
          Sets the read position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SEQTrack

public SEQTrack(SEQDemultiplexer demux)
Method Detail

getSampleCount

public long getSampleCount()
Description copied from interface: Track
Returns the numbers of samples in this track.

Specified by:
getSampleCount in interface Track

setPosition

public void setPosition(long pos)
Description copied from interface: Track
Sets the read position.

Specified by:
setPosition in interface Track

getPosition

public long getPosition()
Description copied from interface: Track
Gets the read position.

Specified by:
getPosition in interface Track

read

public void read(Buffer buf)
Description copied from interface: Track
Reads a sample from the input stream. If the end of the track is reached, the discard-flag in the buffer is set to true.

Specified by:
read in interface Track
Parameters:
buf - The buffer for the sample.

Copyright 2012-04-26 Werner Randelshofer