quicktime.streaming
Class Sourcer

java.lang.Object
  |
  +--quicktime.QTObject
        |
        +--quicktime.std.comp.ComponentIdentifier
              |
              +--quicktime.std.comp.Component
                    |
                    +--quicktime.streaming.Sourcer
All Implemented Interfaces:
InterfaceLib, PrimitivesLib, QTStreamingLib, QuickTimeLib, SharedLibrary, com.apple.jdirect.SharedLibrary

public class Sourcer
extends Component
implements QTStreamingLib

The Sourcer class implements the corresponding data structure of the QTSSourcer component


Fields inherited from interface quicktime.jdirect.QTStreamingLib
JDirect_MacOSX, libraryInstance
 
Fields inherited from interface quicktime.jdirect.QuickTimeLib
JDirect_MacOSX, libraryInstance, name
 
Constructor Summary
Sourcer(ComponentIdentifier compID)
          Creates a new Sourcer component from a specific component identifier
Sourcer(int sourcerType, int subType, int manufacturerType)
          Creates a new sourcer based on type, subType and manufacturer type
Sourcer(int sourcerType, int subType, int manufacturerType, SourcerInitParams initParams)
          Creates a new sourcer based on type, subType, manufacturer type, and optional init parameters
 
Method Summary
 SourcerCallbackParams getCallbackParams()
          Gets the callback parameters associated with the sourcer
 QTPointer getInfo(int selector)
          General purpose routine for retrieving information associated with the Sourcer
 SourcerLoopParams getLoopParams()
          Gets the loop parameters associated with the sourcer
 SourcerTrackParams getSourcerTrackParams()
          Gets the track parameters associated with the sourcer
 int getTimeScale()
          Gets the time scale of the sourcer object
 int idle(long inTime, int flags)
          Idles the sourcer object
 boolean isEnable()
          Returns the enabled state of the sourcer
 boolean isEnable(int flags)
          Returns the enabled state of the sourcer
static int QTSSourcerGetEnable(int inSourcer, byte[] inEnableMode, int inFlags)
           
static int QTSSourcerGetInfo(int inSourcer, int inSelector, byte[] ioParams)
           
static int QTSSourcerGetTimeScale(int inSourcer, int[] outTimeScale)
           
static int QTSSourcerIdle(int inSourcer, long inTime, int flags, int[] outFlags)
           
static int QTSSourcerInitialize(int inSourcer, int inInitParams)
           
static int QTSSourcerSetEnable(int inSourcer, byte inEnableMode, int inFlags)
           
static int QTSSourcerSetInfo(int inSourcer, int inSelector, int ioParams)
           
static int QTSSourcerSetTimeScale(int inSourcer, int inTimeScale)
           
 void setCallbackParams(SourcerCallbackParams callbackParams)
          Sets the callback parameters associated with the sourcer
 void setEnable(boolean enabled)
          Enables (or disables) the sourcer object
 void setEnable(boolean enabled, int flags)
          Enables (or disables) the sourcer object
 void setInfo(int selector, QTPointer data)
          General purpose routine for setting information associated with the Sourcer
 void setLoopParams(SourcerLoopParams loopParams)
          Sets the loop parameters associated with the sourcer
 void setSourcerTrackParams(SourcerTrackParams SourcerTrackParams)
          Sets the track parameters associated with the sourcer
 void setTimeScale(int scale)
          Sets the time scale of the sourcer object
 
Methods inherited from class quicktime.std.comp.Component
count
 
Methods inherited from class quicktime.std.comp.ComponentIdentifier
find, find, getInfo, toString
 
Methods inherited from class quicktime.QTObject
disposeQTObject, equals, ID
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Sourcer

public Sourcer(ComponentIdentifier compID)
        throws QTException
Creates a new Sourcer component from a specific component identifier
Parameters:
compID - component identifier

Sourcer

public Sourcer(int sourcerType,
               int subType,
               int manufacturerType)
        throws QTException
Creates a new sourcer based on type, subType and manufacturer type
Parameters:
sourcerType - integer representing type (OSType) of sourcer
subType - integer representing subtype (OSType) of sourcer
manufacturerType - integer representing manufacturer type (OSType) of sourcer

Sourcer

public Sourcer(int sourcerType,
               int subType,
               int manufacturerType,
               SourcerInitParams initParams)
        throws QTException
Creates a new sourcer based on type, subType, manufacturer type, and optional init parameters
Parameters:
sourcerType - integer representing type (OSType) of sourcer
subType - integer representing subtype (OSType) of sourcer
manufacturerType - integer representing manufacturer type (OSType) of sourcer
initParams - sourcer initialization parameters
Method Detail

setInfo

public void setInfo(int selector,
                    QTPointer data)
             throws QTException
General purpose routine for setting information associated with the Sourcer
Parameters:
selector - the selector specifying the type of information to be set
data - data to be set For specific information setting routine, see the more specific function calls
See Also:
setCallbackParams, setLoopParams,

getInfo

public QTPointer getInfo(int selector)
                  throws QTException
General purpose routine for retrieving information associated with the Sourcer
Parameters:
selector - the selector specifying the type of information to be set
Returns:
retrieved data For specific information accessor routine, see the more specific function calls
See Also:
getCallbackParams, getLoopParams,

setCallbackParams

public void setCallbackParams(SourcerCallbackParams callbackParams)
                       throws QTException
Sets the callback parameters associated with the sourcer
Parameters:
callbackParams - the sourcer callback params object specifying callback parameters

getCallbackParams

public SourcerCallbackParams getCallbackParams()
                                        throws QTException
Gets the callback parameters associated with the sourcer
Returns:
sourcer callback params object specifying callback parameters

setLoopParams

public void setLoopParams(SourcerLoopParams loopParams)
                   throws QTException
Sets the loop parameters associated with the sourcer
Parameters:
loopParams - the sourcer loop params object specifying loop settings

getLoopParams

public SourcerLoopParams getLoopParams()
                                throws QTException
Gets the loop parameters associated with the sourcer
Returns:
sourcer loop params object specifying loop settings

setSourcerTrackParams

public void setSourcerTrackParams(SourcerTrackParams SourcerTrackParams)
                           throws QTException
Sets the track parameters associated with the sourcer
Parameters:
SourcerTrackParams - the track params object specifying track settings

getSourcerTrackParams

public SourcerTrackParams getSourcerTrackParams()
                                         throws QTException
Gets the track parameters associated with the sourcer
Returns:
track params object specifying track settings

idle

public int idle(long inTime,
                int flags)
         throws QTException
Idles the sourcer object
Parameters:
inTime -  
flags - idle flags

setEnable

public void setEnable(boolean enabled)
               throws QTException
Enables (or disables) the sourcer object
Parameters:
enabled - true is the sourcer is enabled

setEnable

public void setEnable(boolean enabled,
                      int flags)
               throws QTException
Enables (or disables) the sourcer object
Parameters:
enabled - true is the sourcer is enabled
flags - enable flags for the sourcer

isEnable

public boolean isEnable()
                 throws QTException
Returns the enabled state of the sourcer
Returns:
true if the sourcer is enabled, false otherwise

isEnable

public boolean isEnable(int flags)
                 throws QTException
Returns the enabled state of the sourcer
Parameters:
flags - flags
Returns:
true if the sourcer is enabled, false otherwise

setTimeScale

public void setTimeScale(int scale)
                  throws QTException
Sets the time scale of the sourcer object
Parameters:
scale - the scale of the sourcer

getTimeScale

public int getTimeScale()
                 throws QTException
Gets the time scale of the sourcer object
Returns:
the scale of the sourcer

QTSSourcerInitialize

public static int QTSSourcerInitialize(int inSourcer,
                                       int inInitParams)

QTSSourcerSetInfo

public static int QTSSourcerSetInfo(int inSourcer,
                                    int inSelector,
                                    int ioParams)

QTSSourcerGetInfo

public static int QTSSourcerGetInfo(int inSourcer,
                                    int inSelector,
                                    byte[] ioParams)

QTSSourcerIdle

public static int QTSSourcerIdle(int inSourcer,
                                 long inTime,
                                 int flags,
                                 int[] outFlags)

QTSSourcerSetEnable

public static int QTSSourcerSetEnable(int inSourcer,
                                      byte inEnableMode,
                                      int inFlags)

QTSSourcerGetEnable

public static int QTSSourcerGetEnable(int inSourcer,
                                      byte[] inEnableMode,
                                      int inFlags)

QTSSourcerSetTimeScale

public static int QTSSourcerSetTimeScale(int inSourcer,
                                         int inTimeScale)

QTSSourcerGetTimeScale

public static int QTSSourcerGetTimeScale(int inSourcer,
                                         int[] outTimeScale)