All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.sound.SoundComponentData
java.lang.Object
|
+----quicktime.util.QTByteObject
|
+----quicktime.sound.SoundComponentData
- public final class SoundComponentData
- extends QTByteObject
- implements PrimitivesLib
-
kNativeSize
- This is the size (the number of bytes) that are required for this class
-
SoundComponentData()
-
-
getBuffer()
- The buffer that contains the sound data.
-
getFlags()
- A set of bit flags whose meanings are specific to a particular sound component.
-
getFormat()
- The format of the data a sound component is producing.
-
getNumChannels()
- The number of channels of sound in the output data stream.
-
getSampleCount()
- The number of samples in the buffer pointed to by the buffer field.
-
getSampleRate()
- The sample rate for the audio data.
-
getSampleSize()
- The size, in bits, of each sample in the output data stream.
-
setBuffer(QTPointer)
- The buffer that contains the sound data.
-
setFlags(int)
- A set of bit flags whose meanings are specific to a particular sound component.
-
setFormat(int)
- The format of the data a sound component is producing.
-
setNumChannels(int)
- The number of channels of sound in the output data stream.
-
setSampleCount(int)
- The number of samples in the buffer pointed to by the buffer field.
-
setSampleRate(float)
- The sample rate for the audio data.
-
setSampleSize(int)
- The size, in bits, of each sample in the output data stream.
-
toString()
- Returns a String representation of this object.
kNativeSize
public static final int kNativeSize
- This is the size (the number of bytes) that are required for this class
SoundComponentData
public SoundComponentData()
getFlags
public final int getFlags()
- A set of bit flags whose meanings are specific to a particular sound component.
setFlags
public final void setFlags(int flags)
- A set of bit flags whose meanings are specific to a particular sound component.
getFormat
public final int getFormat()
- The format of the data a sound component is producing.
setFormat
public final void setFormat(int format)
- The format of the data a sound component is producing.
getNumChannels
public final int getNumChannels()
- The number of channels of sound in the output data stream.
setNumChannels
public final void setNumChannels(int chans)
- The number of channels of sound in the output data stream.
getSampleSize
public final int getSampleSize()
- The size, in bits, of each sample in the output data stream.
setSampleSize
public final void setSampleSize(int sampleSize)
- The size, in bits, of each sample in the output data stream.
getSampleRate
public final float getSampleRate()
- The sample rate for the audio data.
setSampleRate
public final void setSampleRate(float sampleRate)
- The sample rate for the audio data.
getSampleCount
public final int getSampleCount()
- The number of samples in the buffer pointed to by the buffer field. For compressed sounds, this field indicates the number of compressed samples in the sound, not the size of the buffer.
setSampleCount
public final void setSampleCount(int sampleCount)
- The number of samples in the buffer pointed to by the buffer field. For compressed sounds, this field indicates the number of compressed samples in the sound, not the size of the buffer.
getBuffer
public final QTPointer getBuffer()
- The buffer that contains the sound data.
setBuffer
public final void setBuffer(QTPointer buffer) throws SoundException
- The buffer that contains the sound data.
If the size of the incoming buffer is less than (getSampleSize() / 8 * getSampleCount())
a paramErr exception is thrown as the buffer is not large enough to hold the specified samples.
This also means that the sample size and sample count fields must be set before the buffer is set.
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