quicktime.app.audio
Interface AudioSpec

All Known Subinterfaces:
ExtendedAudioSpec, MusicPart, MusicScore
All Known Implementing Classes:
AudioMediaControl, MoviePlayer, MoviePresenter, MusicMediaControl, MusicPartControl, NoteChannelControl, QTPlayer

Deprecated. since QTJava 6.1

public interface AudioSpec

AudioSpec provides a standard interface that all audio capable objects can support.

Volume values for objects that implement this interface are 0 for silence, 1.0F for unity gain (generally maximum volume for a given object). Values over 1.0 are not guaranteed to result in louder volumes; some objects support overdriving the volume, some do not. If an object does not support a value greater than 1, then it will set the volume to its maximum level.

An object may have a volume level but because it is muted you will not hear anything.

Unmuting an AudioSpec object will set it to its current volume setting. If an object is muted and its volume is changed this will not make the audio object audible, it has to be explicitly unmuted. This is inline with the way most mixing consoles work.


Method Summary
 float getVolume()
          Deprecated. Returns the volume setting (0 is silent, 1 is unity gain) * @deprecated since QTJava 6.1
 boolean isMuted()
          Deprecated. Returns the current mute status * @deprecated since QTJava 6.1
 void setMuted(boolean flag)
          Deprecated. since QTJava 6.1
 void setVolume(float val)
          Deprecated. Sets the volume.
 

Method Detail

getVolume

public float getVolume()
                throws QTException
Deprecated. 
Returns the volume setting (0 is silent, 1 is unity gain) * @deprecated since QTJava 6.1

QTException

setVolume

public void setVolume(float val)
               throws QTException
Deprecated. 
Sets the volume. * @deprecated since QTJava 6.1

QTException

isMuted

public boolean isMuted()
                throws QTException
Deprecated. 
Returns the current mute status * @deprecated since QTJava 6.1

QTException

setMuted

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

Allows the muting of the specific channel. When unmuted the AudioSpec object will return to its current volume setting.

Parameters:
flag - turn muting on - true or off - false.
QTException