|
|||||||||
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.SndCommand
This class represents a SndCommand as used by SndChannel's doCommand() and doImmediate methods. There are various convenience methods added BUT you must make sure that the cmd field has been set appropriately before using those methods - those calls fail silently if you do the wrong thing.
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.PrimitivesLib |
JDirect_MacOSX, libraryInstance |
Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
Constructor Summary | |
SndCommand(int cmd)
Creates a SndCommand object and performs initialization |
|
SndCommand(int cmd,
int param1,
int param2)
Creates a SndCommand object and performs initialization |
Method Summary | |
ExtScheduledSoundHeader |
getBuffer()
|
int |
getCmd()
Retrieves the command. |
float |
getLeftVolume()
Gets the value of the left volume IFF the cmd field is getVolumeCmd or volumeCmd otherwise this call returns 0. |
int |
getParam1()
Retrieves the first optional parameter. |
int |
getParam2()
Retrieves the second optional parameter. |
float |
getRightVolume()
Gets the value of the right volume IFF the cmd field is getVolumeCmd or volumeCmd otherwise this call returns 0. |
void |
setBuffer(ExtScheduledSoundHeader buffer)
|
void |
setCmd(int cmd)
Sets the command. |
void |
setParam1(int param1)
Sets the first optional parameter. |
void |
setParam2(int param2)
Sets the second optional parameter. |
void |
setVolumes(float leftVol,
float rightVol)
Gets the value of the right volume IFF the cmd field is volumeCmd otherwise this call returns. |
java.lang.String |
toString()
Returns a string representation of this object. |
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 SndCommand(int cmd) throws QTException
cmd
- the sound command (from StdQTConstants)public SndCommand(int cmd, int param1, int param2) throws QTException
cmd
- the sound command (from SoundConstants)param1
- optional command parameterparam2
- optional command parameterMethod Detail |
public void setCmd(int cmd)
cmd
- the sound command (from StdQTConstants)public int getCmd()
public void setParam1(int param1)
param1
- optional command parameterpublic int getParam1()
public void setParam2(int param2)
param2
- optional command parameterpublic int getParam2()
public void setBuffer(ExtScheduledSoundHeader buffer)
public ExtScheduledSoundHeader getBuffer()
public void setVolumes(float leftVol, float rightVol)
vol
- the new volume for the right channelpublic float getRightVolume()
public float getLeftVolume()
public java.lang.String toString()
toString
in class QTPointerRef
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |