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.
-
kNativeSize
- This is the size of this class
-
CompressionInfo()
- Makes an instance of this class.
-
get(int, int, int, int)
- Gets the CompressionInfo structure given the supplied information
QuickTime::GetCompressionInfo
-
getBytesPerFrame()
- The bytesPerFrame.
-
getBytesPerPacket()
- The bytesPerPacket.
-
getBytesPerSample()
- The bytesPerSample.
-
getCompressionID()
- The compressionID.
-
getFormat()
- The format.
-
getRecordSize()
- The recordSize.
-
getSamplesPerPacket()
- The samplesPerPacket.
-
setBytesPerFrame(int)
- The bytesPerFrame.
-
setBytesPerPacket(int)
- The bytesPerPacket.
-
setBytesPerSample(int)
- The bytesPerSample.
-
setCompressionID(int)
- The compressionID.
-
setFormat(int)
- The format.
-
setRecordSize(int)
- The recordSize.
-
setSamplesPerPacket(int)
- The samplesPerPacket.
-
toString()
- Returns a string representation of this object.
kNativeSize
public static final int kNativeSize
- This is the size of this class
CompressionInfo
public CompressionInfo()
- Makes an instance of this class.
This will set the record size to the kNativeSize value.
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
getRecordSize
public int getRecordSize()
- The recordSize.
setRecordSize
public void setRecordSize(int recordSize)
- The recordSize.
getFormat
public int getFormat()
- The format.
setFormat
public void setFormat(int format)
- The format.
getCompressionID
public int getCompressionID()
- The compressionID.
setCompressionID
public void setCompressionID(int compressionID)
- The compressionID.
getSamplesPerPacket
public int getSamplesPerPacket()
- The samplesPerPacket.
setSamplesPerPacket
public void setSamplesPerPacket(int samplesPerPacket)
- The samplesPerPacket.
getBytesPerPacket
public int getBytesPerPacket()
- The bytesPerPacket.
setBytesPerPacket
public void setBytesPerPacket(int bytesPerPacket)
- The bytesPerPacket.
getBytesPerFrame
public int getBytesPerFrame()
- The bytesPerFrame.
setBytesPerFrame
public void setBytesPerFrame(int bytesPerFrame)
- The bytesPerFrame.
getBytesPerSample
public int getBytesPerSample()
- The bytesPerSample.
setBytesPerSample
public void setBytesPerSample(int bytesPerSample)
- The bytesPerSample.
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