quicktime.streaming
Class SourcerTrackParams

java.lang.Object
  |
  +--quicktime.QTObject
        |
        +--quicktime.util.QTPointerRef
              |
              +--quicktime.util.QTPointer
                    |
                    +--quicktime.streaming.SourcerTrackParams
All Implemented Interfaces:
java.lang.Cloneable, InterfaceLib, PrimitivesLib, QuickTimeLib, SharedLibrary, com.apple.jdirect.SharedLibrary

public final class SourcerTrackParams
extends QTPointer

This class provides a representation the native QTSSourcerTrackParams structure that specifies track parameters for the sourcer


Field Summary
static int kNativeSize
          This is the size of this class
 
Fields inherited from interface quicktime.jdirect.QuickTimeLib
JDirect_MacOSX, libraryInstance, name
 
Constructor Summary
SourcerTrackParams(int version, int flags, Track track, long trackStartOffset, long duration, SourcerLoopParams loopParams)
          Constructs a SourcerTrackParams object based on the native QTSSourcerTrackParams structure
SourcerTrackParams(int flags, Track track)
          Constructs a SourcerTrackParams object based on the native QTSSourcerTrackParams structure
SourcerTrackParams(int flags, Track track, long trackStartOffset, long duration, SourcerLoopParams loopParams)
          Constructs a SourcerTrackParams object based on the native QTSSourcerTrackParams structure
 
Method Summary
 long getDuration()
          Gets the duration limit
 int getFlags()
          Gets the flags of the track params object
 SourcerLoopParams getLoopParams()
          Gets the loop paramters object
 Track getTrack()
          Gets the track
 long getTrackStartOffset()
          Gets the track start offset
 int getVersion()
          Gets the version of the track params object
 void setDuration(long duration)
          Sets the duration limit of the track (0 indicates no limit)
 void setFlags(int flags)
          Sets the flags associated with the track params object
 void setLoopParams(SourcerLoopParams params)
          Sets the loop parameters of the track parameters object
 void setTrack(Track track)
          Sets the track of the track params object
 void setTrackStartOffset(long trackStartOffset)
          Sets the track starting offset (0 indicates the start of the track)
 void setVersion(int vers)
          Sets the version of the track params object
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class quicktime.util.QTPointer
clone, concatenate, fromEncodedImage, fromGraphicsExporter, fromSCData, setSize
 
Methods inherited from class quicktime.util.QTPointerRef
copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, getBytes, getSize
 
Methods inherited from class quicktime.QTObject
disposeQTObject, equals, ID
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

kNativeSize

public static final int kNativeSize
This is the size of this class
Constructor Detail

SourcerTrackParams

public SourcerTrackParams(int flags,
                          Track track)
                   throws QTException
Constructs a SourcerTrackParams object based on the native QTSSourcerTrackParams structure
Parameters:
flags - the flags of the track
track - the track associated with the sourcer

SourcerTrackParams

public SourcerTrackParams(int flags,
                          Track track,
                          long trackStartOffset,
                          long duration,
                          SourcerLoopParams loopParams)
                   throws QTException
Constructs a SourcerTrackParams object based on the native QTSSourcerTrackParams structure
Parameters:
flags - the flags of the track
track - the track associated with the sourcer
trackStartOffset - the offset of the start of the track (use 0 for beginning)
duration - the limit of the track length (use 0 for no limit)
loopParams - the loop properties of the track (use null for no looping)

SourcerTrackParams

public SourcerTrackParams(int version,
                          int flags,
                          Track track,
                          long trackStartOffset,
                          long duration,
                          SourcerLoopParams loopParams)
                   throws QTException
Constructs a SourcerTrackParams object based on the native QTSSourcerTrackParams structure
Parameters:
version - version of the SourcerTrackParams object
flags - the flags of the track
track - the track associated with the sourcer
trackStartOffset - the offset of the start of the track (use 0 for beginning)
duration - the limit of the track length (use 0 for no limit)
loopParams - the loop properties of the track (use null for no looping)
Method Detail

setVersion

public void setVersion(int vers)
Sets the version of the track params object
Parameters:
vers - version

getVersion

public int getVersion()
Gets the version of the track params object
Returns:
version

setFlags

public void setFlags(int flags)
Sets the flags associated with the track params object
Parameters:
flags - flags

getFlags

public int getFlags()
Gets the flags of the track params object
Returns:
flags

setTrack

public void setTrack(Track track)
              throws QTRuntimeException
Sets the track of the track params object
Parameters:
track - track (should not be null)

getTrack

public Track getTrack()
Gets the track
Returns:
track

setTrackStartOffset

public void setTrackStartOffset(long trackStartOffset)
Sets the track starting offset (0 indicates the start of the track)
Parameters:
trackStartoffset - the track start offset

getTrackStartOffset

public long getTrackStartOffset()
Gets the track start offset

setDuration

public void setDuration(long duration)
Sets the duration limit of the track (0 indicates no limit)
Parameters:
duration - limit of the track duration

getDuration

public long getDuration()
Gets the duration limit

setLoopParams

public void setLoopParams(SourcerLoopParams params)
Sets the loop parameters of the track parameters object
Parameters:
params - the loop parameters

getLoopParams

public SourcerLoopParams getLoopParams()
Gets the loop paramters object

toString

public java.lang.String toString()
Returns a string representation of this object.
Overrides:
toString in class QTPointerRef
Returns:
a String