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.


Variable Index

 o kNativeSize
This is the size (the number of bytes) that are required for this class

Constructor Index

 o SoundDescription(int)
This constructor makes an empty SoundDescription object.

Method Index

 o addExtension(QTHandleRef, int)
Add application specific info to a Sound Description object

QuickTime::AddSoundDescriptionExtension

 o clone()
Implementation of Cloneable Interface.
 o getCompressionID()
 o getEndianDescriptor()
Returns the EndianDescriptor for this class.
 o getExtension(int)
Retrieve application specific info from a Sound Description object

QuickTime::GetSoundDescriptionExtension

 o getNumberOfChannels()
 o getNumChannels()
 o getPacketSize()
 o getRevLevel()
 o getSampleRate()
 o getSampleRateRounded()
 o getSampleSize()
 o getVendor()
 o getVersion()
 o removeExtension(int)
Remove application specific info from a Sound Description object

QuickTime::RemoveSoundDescriptionExtension

 o setCompressionID(int)
 o setNumberOfChannels(int)
 o setNumChannels(int)
 o setPacketSize(int)
 o setRevLevel(int)
 o setSampleRate(float)
 o setSampleSize(int)
 o setVendor(int)
 o setVersion(int)
 o toString()
Print information about this object.

Variables

 o kNativeSize
 public static final int kNativeSize
This is the size (the number of bytes) that are required for this class

Constructors

 o 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

Methods

 o getEndianDescriptor
 public static EndianDescriptor getEndianDescriptor()
Returns the EndianDescriptor for this class.

Returns:
an EndianDescriptor
 o clone
 public Object clone()
Implementation of Cloneable Interface.

Overrides:
clone in class SampleDescription
 o setVersion
 public void setVersion(int version)
 o getVersion
 public int getVersion()
 o setRevLevel
 public void setRevLevel(int revLevel)
 o getRevLevel
 public int getRevLevel()
 o setVendor
 public void setVendor(int vendor)
 o getVendor
 public int getVendor()
 o setNumberOfChannels
 public void setNumberOfChannels(int numChannels)
 o getNumberOfChannels
 public int getNumberOfChannels()
 o setNumChannels
 public void setNumChannels(int numChannels)
 o getNumChannels
 public int getNumChannels()
 o setSampleSize
 public void setSampleSize(int sampleSize)
 o getSampleSize
 public int getSampleSize()
 o setCompressionID
 public void setCompressionID(int compressionID)
 o getCompressionID
 public int getCompressionID()
 o setPacketSize
 public void setPacketSize(int packetSize)
 o getPacketSize
 public int getPacketSize()
 o setSampleRate
 public void setSampleRate(float sampleRate)
 o getSampleRate
 public float getSampleRate()
 o getSampleRateRounded
 public int getSampleRateRounded()
 o toString
 public String toString()
Print information about this object.

Returns:
a string representation of this object.
Overrides:
toString in class SampleDescription
 o 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
 o 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
 o 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