|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.app.audio.AudioMediaControl
This is a very simple implementation of the ExtendedAudioSpec interface to control Media that has an audio media component.
Field Summary | |
protected AudioMediaHandler |
audioHandler
This the AudioMediaHandler that is the MediaHandler for the AudioMedia |
protected Media |
audioMedia
This is the audioMedia object that is represented by this class |
Constructor Summary | |
AudioMediaControl(Media media)
The constructor that deals with Media objects. |
Method Summary | |
float |
getBalance()
This method gets the current balance for this media. |
Media |
getMedia()
Returns the media controlled by this object |
float |
getVolume()
Returns the current volume of the media (range: 0.0 - 1.0) |
boolean |
isMuted()
Returns whether or not the media is currently muted. |
void |
setBalance(float val)
This method sets the balance for this media. |
void |
setMuted(boolean mute)
Sets the muted state of this media. |
void |
setVolume(float vol)
This method sets the volume of the media (range: 0.0 - 1.0) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Media audioMedia
protected AudioMediaHandler audioHandler
Constructor Detail |
public AudioMediaControl(Media media) throws QTException
media
- the Media object to controlMethod Detail |
public Media getMedia()
public boolean isMuted()
isMuted
in interface AudioSpec
public void setMuted(boolean mute) throws QTException
setMuted
in interface AudioSpec
mute
- the desired muted statepublic float getVolume() throws QTException
getVolume
in interface AudioSpec
public void setVolume(float vol) throws QTException
setVolume
in interface AudioSpec
vol
- the desired volumepublic float getBalance() throws QTException
getBalance
in interface ExtendedAudioSpec
public void setBalance(float val) throws QTException
setBalance
in interface ExtendedAudioSpec
val
- the desired balance
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |