Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright 2012-04-26 Werner Randelshofer
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.monte.media
Interface Track

All Known Implementing Classes:
  ANIMTrack, ImageSequenceTrack, SEQTrack

    public interface Track

A `Track` refers to media data that can be interpreted in a time coordinate system.

A track is the output of a `Demultiplexer`.

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

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.

Method Detail

### getSampleCount

    long getSampleCount()

  Returns the numbers of samples in this track.

### setPosition

    void setPosition(long pos)

  Sets the read position.

### getPosition

    long getPosition()

  Gets the read position.

### read

    void read(Buffer buf)
              throws java.io.IOException

  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.

  Parameters:
    `buf` - The buffer for the sample.
  Throws:
    `java.io.IOException`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright 2012-04-26 Werner Randelshofer
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD