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
-
audibleLevel
- Specifies the audible level for the sound source.
-
AUDIO_PAUSE
- Represents the stopped state of a sound source.
-
AUDIO_PLAY
- Represents the playing state of a sound source.
-
AUDIO_RESUME
- Used to resume play of a sound source.
-
AUDIO_STOP
- Represents the stopped state of a sound source.
-
numLoops
- Specifies the loop count for the cached sound source.
-
playState
- A value specifying the play state of the sound source.
-
secondsPlayed
- Specifies the sound source’s playback position in seconds.
-
totalSeconds
- Specifies the total play time (in seconds) of the cached sound source.
-
MediaState()
- Creates a new, empty MediaState class.
-
toString()
- Returns a String representation of the MediaState instance variables.
AUDIO_PLAY
public final static int AUDIO_PLAY
- Represents the playing state of a sound source.
AUDIO_PAUSE
public final static int AUDIO_PAUSE
- Represents the stopped state of a sound source.
AUDIO_RESUME
public final static int AUDIO_RESUME
- Used to resume play of a sound source.
AUDIO_STOP
public final static int AUDIO_STOP
- Represents the stopped state of a sound source.
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:
- AUDIO_PLAY The sound source is playing.
- AUDIO_PAUSE The sound source is paused.
- AUDIO_STOP The sound source is stopped.
secondsPlayed
public float secondsPlayed
- Specifies the sound source’s playback position in seconds.
For streaming sound sources, this indicates the cumulative
play position.
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.
numLoops
public int numLoops
- Specifies the loop count for the cached sound source. For
streaming sound sources, this value is not used.
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.
MediaState
public MediaState()
- Creates a new, empty MediaState class.
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