All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.std.movies.media.MusicMedia

java.lang.Object
   |
   +----quicktime.QTObject
           |
           +----quicktime.std.movies.media.Media
                   |
                   +----quicktime.std.movies.media.MusicMedia

public final class MusicMedia
extends Media
The MusicMedia class repesents music media in QuickTime.


Constructor Index

 o MusicMedia(Track, int)
This constructor creates a media struct for the specified Track object.
 o MusicMedia(Track, int, DataRef)
This constructor creates a media struct for the specified Track object.

Method Index

 o getMusicDescription(int)
This method allows you to retrieve a sample description from a media.
 o getMusicHandler()
This method allows you to obtain a reference to a media handler component.

Constructors

 o MusicMedia
 public MusicMedia(Track itsTrack,
                   int timeScale,
                   DataRef dataRef) throws QTException
This constructor creates a media struct for the specified Track object.

QuickTime::NewTrackMedia()

Parameters:
itsTrack - Specifies the Track object this media belongs to.
timeScale - Specifies the time scale of the new media.
dataRef - a DataRef object specifying the default data reference for this media.
 o MusicMedia
 public MusicMedia(Track itsTrack,
                   int timeScale) throws QTException
This constructor creates a media struct for the specified Track object.

QuickTime::NewTrackMedia()

Parameters:
itsTrack - Specifies the Track object this media belongs to.
timeScale - Specifies the time scale of the new media.

Methods

 o getMusicHandler
 public MusicMediaHandler getMusicHandler() throws StdQTException
This method allows you to obtain a reference to a media handler component. This returns the handler that is the appropriate class for this particular media.

QuickTime::GetMediaHandler()

Returns:
a MediaHandler object for the media's media handler.
 o getMusicDescription
 public MusicDescription getMusicDescription(int index) throws QTException
This method allows you to retrieve a sample description from a media. This returns the description that is the appropriate class for this particular media.

QuickTime::GetMediaSampleDescription()

Parameters:
index - Specifies the index of the description to retrieve.
Returns:
a MusicDescription object for the specified index.

All Packages  Class Hierarchy  This Package  Previous  Next  Index