All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.std.movies.media.SoundDescription
java.lang.Object
|
+----quicktime.QTObject
|
+----quicktime.util.QTHandleRef
|
+----quicktime.std.movies.media.SampleDescription
|
+----quicktime.std.movies.media.SoundDescription
- public final class SoundDescription
- extends SampleDescription
- implements QuickTimeLib
This class maps the SoundDescription record of the MovieToolbox.
SoundDescriptions are used when adding and getting media samples to/from Sound tracks.
-
kNativeSize
- This is the size (the number of bytes) that are required for this class
-
SoundDescription(int)
- This constructor makes an empty SoundDescription object.
-
addExtension(QTHandleRef, int)
- Add application specific info to a Sound Description object
QuickTime::AddSoundDescriptionExtension
-
clone()
- Implementation of Cloneable Interface.
-
getCompressionID()
-
-
getEndianDescriptor()
- Returns the EndianDescriptor for this class.
-
getExtension(int)
- Retrieve application specific info from a Sound Description object
QuickTime::GetSoundDescriptionExtension
-
getNumberOfChannels()
-
-
getNumChannels()
-
-
getPacketSize()
-
-
getRevLevel()
-
-
getSampleRate()
-
-
getSampleRateRounded()
-
-
getSampleSize()
-
-
getVendor()
-
-
getVersion()
-
-
removeExtension(int)
- Remove application specific info from a Sound Description object
QuickTime::RemoveSoundDescriptionExtension
-
setCompressionID(int)
-
-
setNumberOfChannels(int)
-
-
setNumChannels(int)
-
-
setPacketSize(int)
-
-
setRevLevel(int)
-
-
setSampleRate(float)
-
-
setSampleSize(int)
-
-
setVendor(int)
-
-
setVersion(int)
-
-
toString()
- Print information about this object.
kNativeSize
public static final int kNativeSize
- This is the size (the number of bytes) that are required for this class
SoundDescription
public SoundDescription(int format) throws QTException
- This constructor makes an empty SoundDescription object.
- Parameters:
- format - the format of the sound data that the object describes
getEndianDescriptor
public static EndianDescriptor getEndianDescriptor()
- Returns the EndianDescriptor for this class.
- Returns:
- an EndianDescriptor
clone
public Object clone()
- Implementation of Cloneable Interface.
- Overrides:
- clone in class SampleDescription
setVersion
public void setVersion(int version)
getVersion
public int getVersion()
setRevLevel
public void setRevLevel(int revLevel)
getRevLevel
public int getRevLevel()
setVendor
public void setVendor(int vendor)
getVendor
public int getVendor()
setNumberOfChannels
public void setNumberOfChannels(int numChannels)
getNumberOfChannels
public int getNumberOfChannels()
setNumChannels
public void setNumChannels(int numChannels)
getNumChannels
public int getNumChannels()
setSampleSize
public void setSampleSize(int sampleSize)
getSampleSize
public int getSampleSize()
setCompressionID
public void setCompressionID(int compressionID)
getCompressionID
public int getCompressionID()
setPacketSize
public void setPacketSize(int packetSize)
getPacketSize
public int getPacketSize()
setSampleRate
public void setSampleRate(float sampleRate)
getSampleRate
public float getSampleRate()
getSampleRateRounded
public int getSampleRateRounded()
toString
public String toString()
- Print information about this object.
- Returns:
- a string representation of this object.
- Overrides:
- toString in class SampleDescription
addExtension
public void addExtension(QTHandleRef extension,
int idType) throws QTException
- Add application specific info to a Sound Description object
QuickTime::AddSoundDescriptionExtension
- Parameters:
- extension - a QTHandle containing the info to add to the sound description
- idType - an OSType used to tag the information for later retrieval or removal
removeExtension
public void removeExtension(int idType) throws QTException
- Remove application specific info from a Sound Description object
QuickTime::RemoveSoundDescriptionExtension
- Parameters:
- idType - an OSType identifying the information for removal
getExtension
public QTHandle getExtension(int idType) throws QTException
- Retrieve application specific info from a Sound Description object
QuickTime::GetSoundDescriptionExtension
- Parameters:
- idType - an OSType identifying the information for removal
- Returns:
- a dataref to the Extension
All Packages Class Hierarchy This Package Previous Next Index