|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.QTObject | +--quicktime.sound.SndChannel
Sound Channels are used to playback sound.
Fields inherited from interface quicktime.jdirect.InterfaceLib |
JDirect_MacOSX, libraryInstance |
Fields inherited from interface quicktime.jdirect.SoundLib |
JDirect_MacOSX, libraryInstance |
Constructor Summary | |
SndChannel()
Opens a new SndChannel and allocates memory to store the commands that will control the operation of the sound channel. |
|
SndChannel(int synth,
int init)
Opens a new SndChannel and allocates memory to store the commands that will control the operation of the sound channel. |
|
SndChannel(int synth,
int init,
SoundCallBack callback)
Opens a new SndChannel and allocates memory to store the commands that will control the operation of the sound channel. |
|
SndChannel(SoundCallBack callback)
Opens a new SndChannel and allocates memory to store the commands that will control the operation of the sound channel. |
Method Summary | |
void |
doCommand(SndCommand cmd)
The SndDoCommand function sends the sound command specified in the cmd parameter to the end of the command queue of the channel specified in the chan parameter. |
void |
doCommand(SndCommand cmd,
boolean noWait)
The SndDoCommand function sends the sound command specified in the cmd parameter to the end of the command queue of the channel specified in the chan parameter. |
void |
doImmediate(SndCommand cmd)
The SndDoImmediate function operates much like SndDoCommand, except that it bypasses the existing command queue of the sound channel and sends the specified command directly to the Sound Manager for immediate processing. |
void |
enableClock(boolean flag)
Returns the current clock of the SoundClock. |
LevelMeterInfo |
getActiveLevels()
Gets the level values. |
Clock |
getClock()
Returns the current clock of the SoundClock. |
MediaEQSpectrumBands |
getEQSpectrumBands(int count)
Pass in the count of bands you expect to get back, it would return the the actual value of bands available with their frequncy limits. |
int[] |
getEQSpectrumLevels(int count)
Gets the Equalizer Band Levels. |
int[] |
getEQToneControlGain()
Gets the values of the bass and treble tone control gain values. |
boolean |
getEQToneControlOnOff()
Returns true if the tone control (bass and treble) are enabled. |
boolean |
getLevelMeterOnOff()
Gets Level Meter state. |
boolean |
isFinished()
Returns true if the channel is both NOT busy and NOT paused - ie. |
boolean |
isPaused()
Returns true if the channel is currently paused. |
boolean |
isQuietNow()
Returns the current setting of the quietNow flag. |
void |
play(SndHandle sndHdl)
Plays a sound asynchronously from memory. |
void |
setEQSpectrumBands(MediaEQSpectrumBands spectrumInfo)
Set the array of fequencies that are used to calculate spectral information. |
void |
setEQToneControlGain(int bass,
int treble)
Sets the values of the bass and treble tone control gain values. |
void |
setEQToneControlOnOff(boolean flag)
If true enables the tone control (bass and treble). |
void |
setLevelMeterOnOff(boolean enabled)
Sets Level Meter state. |
void |
setQuietNow(boolean flag)
This flag controls whether a sound channel is silent when it is disposed of. |
SCStatus |
status()
The fields of the record returned by this call accurately describe the sound channel specified. |
Methods inherited from class quicktime.QTObject |
disposeQTObject, equals, ID, toString |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SndChannel() throws QTException
public SndChannel(int synth, int init) throws QTException
synth
- the sound data type you intend to play on this channelinit
- the desired initialization parameters for the channel.public SndChannel(SoundCallBack callback) throws QTException
synth
- the sound data type you intend to play on this channelinit
- the desired initialization parameters for the channel.callback
- the (optional) callback that can be called when a sound has completed.public SndChannel(int synth, int init, SoundCallBack callback) throws QTException
synth
- the sound data type you intend to play on this channelinit
- the desired initialization parameters for the channel.callback
- the (optional) callback that can be called when a sound has completed.Method Detail |
public boolean isQuietNow()
public void setQuietNow(boolean flag)
public void play(SndHandle sndHdl) throws SoundException
chan
- if supplied the sound is played asynchronously using this channelsndHdl
- the handle that has the sound data in itpublic boolean isFinished() throws SoundException
public boolean isPaused() throws SoundException
public SCStatus status() throws SoundException
public void doCommand(SndCommand cmd) throws SoundException
cmd
- A sound command to be sent to the channelpublic void doCommand(SndCommand cmd, boolean noWait) throws SoundException
cmd
- A sound command to be sent to the channelnoWait
- noWait A flag indicating whether the Sound Manager should wait for a free space in a full queue (FALSE) or whether it should return immediately with a queueFull result code if the queue is full (TRUE).public void doImmediate(SndCommand cmd) throws SoundException
cmd
- A sound command to be sent to the channelpublic boolean getLevelMeterOnOff() throws SoundException
public void setLevelMeterOnOff(boolean enabled) throws SoundException
enabled
- true if enabledpublic void enableClock(boolean flag) throws SoundException
public Clock getClock() throws SoundException
public LevelMeterInfo getActiveLevels() throws SoundException
public MediaEQSpectrumBands getEQSpectrumBands(int count) throws SoundException
public void setEQSpectrumBands(MediaEQSpectrumBands spectrumInfo) throws SoundException
spectrumInfo
- MediaEQSpectrumBandsRecord objectpublic int[] getEQSpectrumLevels(int count) throws SoundException
public boolean getEQToneControlOnOff() throws SoundException
public void setEQToneControlOnOff(boolean flag) throws SoundException
flag
- a boolean.public void setEQToneControlGain(int bass, int treble) throws SoundException
bass
- the sound basstreble
- the sound treblepublic int[] getEQToneControlGain() throws SoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |