|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.QTObject | +--quicktime.util.QTPointerRef | +--quicktime.sound.ExtScheduledSoundHeader
Field Summary | |
static int |
kNativeSize
This is the size (the number of bytes) that are required for this class |
Fields inherited from interface quicktime.jdirect.InterfaceLib |
JDirect_MacOSX, libraryInstance |
Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
Constructor Summary | |
ExtScheduledSoundHeader(QTPointerRef data,
int numChannels,
float rate,
int sampleSizeBits,
int format)
Create an ExtScheduledSoundHeader object when the sample data format is uncompressed. |
|
ExtScheduledSoundHeader(QTPointerRef data,
int numChannels,
float rate,
int numFrames,
int sampleSizeBits,
int format,
int compressionID,
int packetSize)
Create an ExtScheduledSoundHeader object for use when the sample data is compressed. |
|
ExtScheduledSoundHeader(QTPointerRef data,
int numChannels,
float rate,
int numFrames,
int sampleSizeBits,
int format,
int compressionID,
int packetSize,
TimeRecord startTime,
int extendedFlags)
Create an ExtScheduledSoundHeader object for the scheduled sound calls. |
Method Summary | |
int |
getCompressionID()
|
int |
getExtendedFlags()
Gets the value of the extended flags field. |
int |
getFormat()
|
int |
getNumChannels()
This returns the number of channels. |
int |
getNumFrames()
|
int |
getPacketSize()
|
QTPointerRef |
getSampleData()
This returns a pointer to the sample data |
float |
getSampleRate()
This method gets the sample rate of the sound |
int |
getSampleSize()
This gets the size of the samples in bits per channel |
TimeRecord |
getStartTime()
|
void |
setCompressionID(int id)
This method sets id of the compression component associated with the sound |
void |
setExtendedFlags(int extFlags)
Sets the value of the extended flags field. |
void |
setFormat(int format)
This method sets format of the sound |
void |
setNumChannels(int numChannels)
This sets the number of channels used by the sound data |
void |
setNumFrames(int frames)
This method sets number of frames in the sound |
void |
setPacketSize(int size)
This method sets the packet size of the sound |
void |
setSampleData(QTPointerRef ref)
This sets the data of the sound header. |
void |
setSampleRate(float rate)
Sets the sample rate of the sound |
void |
setSampleSize(int sampleSizeBits)
This sets the size of the samples in bits per channel |
void |
setStartTime(TimeRecord startTime)
This method sets the time that the sound should begin playing |
java.lang.String |
toString()
A String representation of the class. |
Methods inherited from class quicktime.util.QTPointerRef |
copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, getBytes, getSize |
Methods inherited from class quicktime.QTObject |
disposeQTObject, equals, ID |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int kNativeSize
Constructor Detail |
public ExtScheduledSoundHeader(QTPointerRef data, int numChannels, float rate, int sampleSizeBits, int format) throws QTException
data
- the data used by the sound headernumChannels
- the number of channels to be used. 1 = mono, 2 = streorate
- the sample rate of the sound datasampleSizeBits
- number of bits per each sample.public ExtScheduledSoundHeader(QTPointerRef data, int numChannels, float rate, int numFrames, int sampleSizeBits, int format, int compressionID, int packetSize) throws QTException
data
- the data used by the sound headernumChannels
- the number of channels to be used. 1 = mono, 2 = streorate
- the sample rate of the sound datanumFrames
- the number of frames of sound dataformat
- the sound format described by the headersampleSizeBits
- number of bits per each sample.compressionID
- the ID of the compression component used to compress this soundpacketSize
- the size of each sound packetpublic ExtScheduledSoundHeader(QTPointerRef data, int numChannels, float rate, int numFrames, int sampleSizeBits, int format, int compressionID, int packetSize, TimeRecord startTime, int extendedFlags) throws QTException
data
- the data used by the sound headernumChannels
- the number of channels to be used. 1 = mono, 2 = streorate
- the sample rate of the sound datanumFrames
- the number of frames of sound dataformat
- the sound format described by the headersampleSizeBits
- number of bits per each sample.compressionID
- the ID of the compression component used to compress this soundpacketSize
- the size of each sound packetstartTime
- a TimeRecord specifying the time the sound will start playingextendedFlags
- the extended flags fieldMethod Detail |
public QTPointerRef getSampleData()
public void setSampleData(QTPointerRef ref)
ref
- the data pointerpublic int getNumChannels()
public void setNumChannels(int numChannels)
numChannels
- number of channels, 1 means monopublic float getSampleRate()
public void setSampleRate(float rate)
rate
- the sample rate as a floating point numberpublic int getNumFrames()
public void setNumFrames(int frames)
frames
- number of framespublic int getFormat()
public void setFormat(int format)
format
- format of the soundpublic void setSampleSize(int sampleSizeBits)
sampleSizeBits
- the number of bits per channelpublic int getSampleSize()
public int getCompressionID()
public void setCompressionID(int id)
id
- compressor idpublic int getPacketSize()
public void setPacketSize(int size)
size
- size of the sound packetpublic TimeRecord getStartTime() throws QTException
public void setStartTime(TimeRecord startTime)
startTime
- the time the sound should play (in the future)public int getExtendedFlags()
public void setExtendedFlags(int extFlags)
public java.lang.String toString()
QTPointerRef
toString
in class QTPointerRef
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |