All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.sound.CompressionInfo

java.lang.Object
   |
   +----quicktime.util.QTByteObject
           |
           +----quicktime.sound.CompressionInfo

public final class CompressionInfo
extends QTByteObject
implements SoundLib
Contains information about the compression format of sound data.


Variable Index

 o kNativeSize
This is the size of this class

Constructor Index

 o CompressionInfo()
Makes an instance of this class.

Method Index

 o get(int, int, int, int)
Gets the CompressionInfo structure given the supplied information

QuickTime::GetCompressionInfo

 o getBytesPerFrame()
The bytesPerFrame.
 o getBytesPerPacket()
The bytesPerPacket.
 o getBytesPerSample()
The bytesPerSample.
 o getCompressionID()
The compressionID.
 o getFormat()
The format.
 o getRecordSize()
The recordSize.
 o getSamplesPerPacket()
The samplesPerPacket.
 o setBytesPerFrame(int)
The bytesPerFrame.
 o setBytesPerPacket(int)
The bytesPerPacket.
 o setBytesPerSample(int)
The bytesPerSample.
 o setCompressionID(int)
The compressionID.
 o setFormat(int)
The format.
 o setRecordSize(int)
The recordSize.
 o setSamplesPerPacket(int)
The samplesPerPacket.
 o toString()
Returns a string representation of this object.

Variables

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

Constructors

 o CompressionInfo
 public CompressionInfo()
Makes an instance of this class. This will set the record size to the kNativeSize value.

Methods

 o get
 public static CompressionInfo get(int compressionID,
                                   int format,
                                   int numChannels,
                                   int sampleSize) throws SoundException
Gets the CompressionInfo structure given the supplied information

QuickTime::GetCompressionInfo

Parameters:
compressionID - the id of the compression type
format - the OSType that describes the compression used
numChannels - the number of channels in the sound data
sampleSize - the size of the sample
Returns:
a CompressionInfo object
 o getRecordSize
 public int getRecordSize()
The recordSize.

 o setRecordSize
 public void setRecordSize(int recordSize)
The recordSize.

 o getFormat
 public int getFormat()
The format.

 o setFormat
 public void setFormat(int format)
The format.

 o getCompressionID
 public int getCompressionID()
The compressionID.

 o setCompressionID
 public void setCompressionID(int compressionID)
The compressionID.

 o getSamplesPerPacket
 public int getSamplesPerPacket()
The samplesPerPacket.

 o setSamplesPerPacket
 public void setSamplesPerPacket(int samplesPerPacket)
The samplesPerPacket.

 o getBytesPerPacket
 public int getBytesPerPacket()
The bytesPerPacket.

 o setBytesPerPacket
 public void setBytesPerPacket(int bytesPerPacket)
The bytesPerPacket.

 o getBytesPerFrame
 public int getBytesPerFrame()
The bytesPerFrame.

 o setBytesPerFrame
 public void setBytesPerFrame(int bytesPerFrame)
The bytesPerFrame.

 o getBytesPerSample
 public int getBytesPerSample()
The bytesPerSample.

 o setBytesPerSample
 public void setBytesPerSample(int bytesPerSample)
The bytesPerSample.

 o toString
 public String toString()
Returns a string representation of this object.

Returns:
a String
Overrides:
toString in class QTByteObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index