|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--quicktime.QTObject
|
+--quicktime.util.QTHandleRef
|
+--quicktime.util.QTHandle
|
+--quicktime.sound.SndHandle
| Field Summary |
| Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
| Fields inherited from interface quicktime.jdirect.SoundLib |
JDirect_MacOSX, libraryInstance |
| Constructor Summary | |
SndHandle()
Construct an empty handle that must be initialized by the setupHeader call. |
|
SndHandle(int size,
boolean clear)
Construct an empty handle that must be initialized by the setupHeader call. |
|
SndHandle(int numChannels,
float sampleRate,
int sampleSize,
int compressionType)
Construct a sound resource for containing sampled sound that can be used to record and play sound. |
|
SndHandle(int numChannels,
float sampleRate,
int sampleSize,
int compressionType,
int baseNote)
Construct a sound resource for containing sampled sound that can be used to record and play sound. |
|
| Method Summary | |
void |
appendSoundBuffer(int bufferSize)
Appends the specified number of bytes to the SoundHandle after the header. |
void |
appendSoundData(QTPointerRef buffer)
Appends the sound buffer to the end of this handle. |
QTPointerRef |
getSoundData()
Return a Pointer to the sound data that is contained within the SndHandle. |
int |
getSoundHeaderOffset()
The number of bytes from the beginning of the sound resource specified by the sndHdl parameter to the sound header that is contained within. |
SndInfo |
parseSndHeader()
You use this function to retrieve information about a SndHandle. |
void |
setSoundData(QTPointerRef buffer)
Sets the internal buffer Pointer of this sound header to the incomding buffer. |
int |
setupHeader(int numChannels,
float sampleRate,
int sampleSize,
int compressionType,
int numBytes)
You can use the SetupSndHeader function to construct a sound resource containing sampled sound that can be passed to the SndPlay function. |
int |
setupHeader(int numChannels,
float sampleRate,
int sampleSize,
int compressionType,
int baseNote,
int numBytes)
You can use the SetupSndHeader function to construct a sound resource containing sampled sound that can be passed to the SndPlay function. |
| Methods inherited from class quicktime.util.QTHandleRef |
copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, fromCompressionDialogState, fromSCSequence, getBytes, getSize, inMemory, isLocked, lock, lockHigh, moveHigh, toQTPointer, toQTPointer, toString, unlock |
| Methods inherited from class quicktime.QTObject |
disposeQTObject, equals, ID |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SndHandle()
throws QTException
public SndHandle(int size,
boolean clear)
throws QTException
size - how many bytes to allocateclear - if true the handle's memory is cleared to zeroes.
public SndHandle(int numChannels,
float sampleRate,
int sampleSize,
int compressionType)
throws QTException
numChannels - the number of channels for the soundsampleRate - the rate at which the sound was recordedsampleSize - The sample size for the original sound (that is, bits per sample).compressionType - The compression type for the sound ('NONE', 'MAC3', 'MAC6', or other third-party types).
public SndHandle(int numChannels,
float sampleRate,
int sampleSize,
int compressionType,
int baseNote)
throws QTException
numChannels - the number of channels for the soundsampleRate - the rate at which the sound was recordedsampleSize - The sample size for the original sound (that is, bits per sample).compressionType - The compression type for the sound ('NONE', 'MAC3', 'MAC6', or other third-party types).baseNote - The base note for the sound, expressed as a MIDI note value.| Method Detail |
public int setupHeader(int numChannels,
float sampleRate,
int sampleSize,
int compressionType,
int numBytes)
throws SoundException
numChannels - the number of channels for the soundsampleRate - the rate at which the sound was recordedsampleSize - The sample size for the original sound (that is, bits per sample).compressionType - The compression type for the sound ('NONE', 'MAC3', 'MAC6', or other third-party types).numBytes - The number of bytes of audio data that are to be stored in the handle. (This value is not necessarily the same as the number of samples in the sound.)
SoundException
public int setupHeader(int numChannels,
float sampleRate,
int sampleSize,
int compressionType,
int baseNote,
int numBytes)
throws SoundException
numChannels - the number of channels for the soundsampleRate - the rate at which the sound was recordedsampleSize - The sample size for the original sound (that is, bits per sample).compressionType - The compression type for the sound ('NONE', 'MAC3', 'MAC6', or other third-party types).baseNote - The base note for the sound, expressed as a MIDI note value.numBytes - The number of bytes of audio data that are to be stored in the handle. (This value is not necessarily the same as the number of samples in the sound.)
SoundException
public final int getSoundHeaderOffset()
throws SoundException
SoundException
public QTPointerRef getSoundData()
throws QTException
QTException
public void appendSoundData(QTPointerRef buffer)
throws QTException
buffer - the buffer that contains the actual sound data.
QTException
public void appendSoundBuffer(int bufferSize)
throws QTException
bufferSize - the number of bytes to append for the sound buffer
QTException
public void setSoundData(QTPointerRef buffer)
throws QTException
buffer - the buffer that contains the actual sound data.
QTException
public final SndInfo parseSndHeader()
throws SoundException
SoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||