quicktime.app.audio
Class AudioMediaControl

java.lang.Object
  |
  +--quicktime.app.audio.AudioMediaControl
All Implemented Interfaces:
AudioSpec, ExtendedAudioSpec
Direct Known Subclasses:
MusicMediaControl

Deprecated. since QTJava 6.1

public class AudioMediaControl
extends java.lang.Object
implements ExtendedAudioSpec

This is a very simple implementation of the ExtendedAudioSpec interface to control Media that has an audio media component.


Field Summary
protected  AudioMediaHandler audioHandler
          Deprecated. This the AudioMediaHandler that is the MediaHandler for the AudioMedia * @deprecated since QTJava 6.1
protected  Media audioMedia
          Deprecated. This is the audioMedia object that is represented by this class * @deprecated since QTJava 6.1
 
Constructor Summary
AudioMediaControl(Media media)
          Deprecated. since QTJava 6.1
 
Method Summary
 float getBalance()
          Deprecated. since QTJava 6.1
 Media getMedia()
          Deprecated. since QTJava 6.1
 float getVolume()
          Deprecated. since QTJava 6.1
 boolean isMuted()
          Deprecated. since QTJava 6.1
 void setBalance(float val)
          Deprecated. since QTJava 6.1
 void setMuted(boolean mute)
          Deprecated. since QTJava 6.1
 void setVolume(float vol)
          Deprecated. since QTJava 6.1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

audioMedia

protected Media audioMedia
Deprecated. 
This is the audioMedia object that is represented by this class * @deprecated since QTJava 6.1


audioHandler

protected AudioMediaHandler audioHandler
Deprecated. 
This the AudioMediaHandler that is the MediaHandler for the AudioMedia * @deprecated since QTJava 6.1

Constructor Detail

AudioMediaControl

public AudioMediaControl(Media media)
                  throws QTException
Deprecated. since QTJava 6.1

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
Method Detail

getMedia

public Media getMedia()
Deprecated. since QTJava 6.1

Returns the media controlled by this object

Returns:
the media

isMuted

public boolean isMuted()
Deprecated. since QTJava 6.1

Returns whether or not the media is currently muted.

Specified by:
isMuted in interface AudioSpec
Returns:
the muted state of the media

setMuted

public void setMuted(boolean mute)
              throws QTException
Deprecated. since QTJava 6.1

Sets the muted state of this media.

Specified by:
setMuted in interface AudioSpec
Parameters:
mute - the desired muted state
QTException

getVolume

public float getVolume()
                throws QTException
Deprecated. since QTJava 6.1

Returns the current volume of the media (range: 0.0 - 1.0)

Specified by:
getVolume in interface AudioSpec
Returns:
the current volume.
QTException

setVolume

public void setVolume(float vol)
               throws QTException
Deprecated. since QTJava 6.1

This method sets the volume of the media (range: 0.0 - 1.0)

Specified by:
setVolume in interface AudioSpec
Parameters:
vol - the desired volume
QTException

getBalance

public float getBalance()
                 throws QTException
Deprecated. since QTJava 6.1

This method gets the current balance for this media. Values range from -1.0 (left) to 0.0 (center) to 1.0 (right)

Specified by:
getBalance in interface ExtendedAudioSpec
Returns:
the current balance
QTException

setBalance

public void setBalance(float val)
                throws QTException
Deprecated. since QTJava 6.1

This method sets the balance for this media. Valid values range from -1.0 (left) to 0.0 (center) to 1.0 (right)

Specified by:
setBalance in interface ExtendedAudioSpec
Parameters:
val - the desired balance
QTException