All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.app.audio.AudioMediaControl
java.lang.Object
|
+----quicktime.app.audio.AudioMediaControl
- public class AudioMediaControl
- extends Object
- implements ExtendedAudioSpec
This is a very simple implementation of the ExtendedAudioSpec interface
to control Media that has an audio media component.
-
audioHandler
- This the AudioMediaHandler that is the MediaHandler for the AudioMedia
-
audioMedia
- This is the audioMedia object that is represented by this class
-
AudioMediaControl(Media)
- The constructor that deals with Media objects.
-
getBalance()
- This method gets the current balance for this media.
-
getMedia()
- Returns the media controlled by this object
-
getVolume()
- Returns the current volume of the media (range: 0.0 - 1.0)
-
isMuted()
- Returns whether or not the media is currently muted.
-
setBalance(float)
- This method sets the balance for this media.
-
setMuted(boolean)
- Sets the muted state of this media.
-
setVolume(float)
- This method sets the volume of the media (range: 0.0 - 1.0)
audioMedia
protected Media audioMedia
- This is the audioMedia object that is represented by this class
audioHandler
protected AudioMediaHandler audioHandler
- This the AudioMediaHandler that is the MediaHandler for the AudioMedia
AudioMediaControl
public AudioMediaControl(Media media) throws QTException
- The constructor that deals with Media objects.
The media object must have an AudioMediaHandler as its media handler
or an exception will be thrown
- Parameters:
- media - the Media object to control
getMedia
public Media getMedia()
- Returns the media controlled by this object
- Returns:
- the media
isMuted
public boolean isMuted()
- Returns whether or not the media is currently muted.
- Returns:
- the muted state of the media
setMuted
public void setMuted(boolean mute) throws QTException
- Sets the muted state of this media.
- Parameters:
- mute - the desired muted state
getVolume
public float getVolume() throws QTException
- Returns the current volume of the media (range: 0.0 - 1.0)
- Returns:
- the current volume.
setVolume
public void setVolume(float vol) throws QTException
- This method sets the volume of the media (range: 0.0 - 1.0)
- Parameters:
- vol - the desired volume
getBalance
public float getBalance() throws QTException
- This method gets the current balance for this media. Values range from
-1.0 (left) to 0.0 (center) to 1.0 (right)
- Returns:
- the current balance
setBalance
public void setBalance(float val) throws QTException
- This method sets the balance for this media. Valid values range from
-1.0 (left) to 0.0 (center) to 1.0 (right)
- Parameters:
- val - the desired balance
All Packages Class Hierarchy This Package Previous Next Index