Class spatialAudio.MediaState
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class spatialAudio.MediaState

java.lang.Object
   |
   +----spatialAudio.MediaState

public class MediaState
extends Object
The MediaState class stores information about the current state of a sound source. An instance of this class is returned by the getMediaState() method. The play state of a cached sound source can be controlled using the getPlayState() and setPlayState() methods.

Copyright (c) 1996 Intel Corporation

See Also:
SoundSource, CachedSoundSource

VARIABLE INDEX

 O audibleLevel
Specifies the audible level for the sound source.
 O AUDIO_PAUSE
Represents the stopped state of a sound source.
 O AUDIO_PLAY
Represents the playing state of a sound source.
 O AUDIO_RESUME
Used to resume play of a sound source.
 O AUDIO_STOP
Represents the stopped state of a sound source.
 O numLoops
Specifies the loop count for the cached sound source.
 O playState
A value specifying the play state of the sound source.
 O secondsPlayed
Specifies the sound source’s playback position in seconds.
 O totalSeconds
Specifies the total play time (in seconds) of the cached sound source.

CONSTRUCTOR INDEX

 O MediaState()
Creates a new, empty MediaState class.

METHOD INDEX

 O toString()
Returns a String representation of the MediaState instance variables.

VARIABLES

 O AUDIO_PLAY
  public final static int AUDIO_PLAY
Represents the playing state of a sound source.
 O AUDIO_PAUSE
  public final static int AUDIO_PAUSE
Represents the stopped state of a sound source.
 O AUDIO_RESUME
  public final static int AUDIO_RESUME
Used to resume play of a sound source.
 O AUDIO_STOP
  public final static int AUDIO_STOP
Represents the stopped state of a sound source.
 O playState
  public int playState
A value specifying the play state of the sound source. For streaming sound sources, this value is always AUDIO_PLAY. For cached sound sources, possible values are:
 O secondsPlayed
  public float secondsPlayed
Specifies the sound source’s playback position in seconds. For streaming sound sources, this indicates the cumulative play position.
 O totalSeconds
  public float totalSeconds
Specifies the total play time (in seconds) of the cached sound source. For streaming sound sources, this value is not used.
 O numLoops
  public int numLoops
Specifies the loop count for the cached sound source. For streaming sound sources, this value is not used.
 O audibleLevel
  public float audibleLevel
Specifies the audible level for the sound source. The audio level is calculated from the sound source model and distance to the listener; the play state has no effect. A value of zero indicates the sound source is not audible.

CONSTRUCTORS

 O MediaState
  public MediaState()
Creates a new, empty MediaState class.

METHODS

 O toString
  public String toString()
Returns a String representation of the MediaState instance variables.
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index
Free Web Hosting