All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.sound.SndChannel
java.lang.Object
|
+----quicktime.QTObject
|
+----quicktime.sound.SndChannel
- public final class SndChannel
- extends QTObject
- implements QuickTimeLib
Sound Channels are used to playback sound.
-
SndChannel(int, int)
- Opens a new SndChannel and allocates memory to store the commands that will control
the operation of the sound channel.
-
isQuietNow()
- Returns the current setting of the quietNow flag.
-
play(SndHandle)
- Plays a sound asynchronously from memory.
-
setQuietNow(boolean)
- This flag controls whether a sound channel is silent when it is disposed of,
which can be some indeterminate time of the java GarbageCollector, or after
any sound that is currently playing is finished.
SndChannel
public SndChannel(int synth,
int init) throws QTException
- Opens a new SndChannel and allocates memory to store the commands that will control
the operation of the sound channel.
QuickTime::SndNewChannel
- Parameters:
- synth - the sound data type you intend to play on this channel
- init - the desired initialization parameters for the channel.
isQuietNow
public final boolean isQuietNow()
- Returns the current setting of the quietNow flag.
setQuietNow
public final void setQuietNow(boolean flag)
- This flag controls whether a sound channel is silent when it is disposed of,
which can be some indeterminate time of the java GarbageCollector, or after
any sound that is currently playing is finished.
The default setting is to allow the sound to finish playing - the flag is set to false.
If you wish to explicitly stop a sound then you should do so.
play
public final void play(SndHandle sndHdl) throws SoundException
- Plays a sound asynchronously from memory.
QuickTime::SndPlay QuickTime::SndPlay
- Parameters:
- chan - if supplied the sound is played asynchronously using this channel
- sndHdl - the handle that has the sound data in it
All Packages Class Hierarchy This Package Previous Next Index