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.


Variable Index

 o audioHandler
This the AudioMediaHandler that is the MediaHandler for the AudioMedia
 o audioMedia
This is the audioMedia object that is represented by this class

Constructor Index

 o AudioMediaControl(Media)
The constructor that deals with Media objects.

Method Index

 o getBalance()
This method gets the current balance for this media.
 o getMedia()
Returns the media controlled by this object
 o getVolume()
Returns the current volume of the media (range: 0.0 - 1.0)
 o isMuted()
Returns whether or not the media is currently muted.
 o setBalance(float)
This method sets the balance for this media.
 o setMuted(boolean)
Sets the muted state of this media.
 o setVolume(float)
This method sets the volume of the media (range: 0.0 - 1.0)

Variables

 o audioMedia
 protected Media audioMedia
This is the audioMedia object that is represented by this class

 o audioHandler
 protected AudioMediaHandler audioHandler
This the AudioMediaHandler that is the MediaHandler for the AudioMedia

Constructors

 o 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

Methods

 o getMedia
 public Media getMedia()
Returns the media controlled by this object

Returns:
the media
 o isMuted
 public boolean isMuted()
Returns whether or not the media is currently muted.

Returns:
the muted state of the media
 o setMuted
 public void setMuted(boolean mute) throws QTException
Sets the muted state of this media.

Parameters:
mute - the desired muted state
 o getVolume
 public float getVolume() throws QTException
Returns the current volume of the media (range: 0.0 - 1.0)

Returns:
the current volume.
 o 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
 o 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
 o 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