| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final List | |
| private double | |
| private int | |
| private static final int | |
| private MediaPlayer | |
| private double | |
| private int | |
| private static final ReentrantLock | |
| private final ReentrantLock | |
| private boolean | |
| private int | |
| private double | |
| private boolean | |
| private static final LinkedBlockingQueue | |
| private NativeMediaAudioClip | |
| private double |
| Access | Constructor and Description |
|---|---|
| private | NativeMediaAudioClipPlayer(NativeMediaAudioClip clip, double volume, double balance, double rate, double pan, int loopCount, int priority)
|
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| public double | |
| private static void | |
| public boolean | equals(Object that)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public static int | |
| public static int | |
| public int | |
| public synchronized void | |
| public boolean | |
| private boolean | |
| public int | |
| public void | onError(Object source, int errorCode, String message)
Implements com. Reports the occurrence of a error in media processing. |
| public void | onFinish(PlayerStateEvent evt)
Implements com. The finish state indicates playback has completed playback to the end. |
| public void | onHalt(PlayerStateEvent evt)
Implements com. The error notification provides information on any error during playback. |
| public void | onPause(PlayerStateEvent evt)
Implements com. The pause state indicates playback has paused. |
| public void | onPlaying(PlayerStateEvent evt)
Implements com. The play state indicates the media is beginning to play. |
| public void | onReady(PlayerStateEvent evt)
Implements com. The ready state indicates the media is loaded. |
| public void | |
| public void | onStop(PlayerStateEvent evt)
Implements com. The stop state indicates playback has paused and presentation time has been reset back to 0. |
| public void | |
| public double | |
| public synchronized void | |
| public double | |
| public static void | playClip(NativeMediaAudioClip clip, double volume, double balance, double rate, double pan, int loopCount, int priority)
|
| public int | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| private Locator | |
| public void | |
| public static void | |
| public double |
| activePlayers | back to summary |
|---|---|
| private static final List<NativeMediaAudioClipPlayer> activePlayers | |
| balance | back to summary |
|---|---|
| private double balance | |
| loopCount | back to summary |
|---|---|
| private int loopCount | |
| MAX_PLAYER_COUNT | back to summary |
|---|---|
| private static final int MAX_PLAYER_COUNT | |
| mediaPlayer | back to summary |
|---|---|
| private MediaPlayer mediaPlayer | |
| pan | back to summary |
|---|---|
| private double pan | |
| playCount | back to summary |
|---|---|
| private int playCount | |
| playerListLock | back to summary |
|---|---|
| private static final ReentrantLock playerListLock | |
| playerStateLock | back to summary |
|---|---|
| private final ReentrantLock playerStateLock | |
| playing | back to summary |
|---|---|
| private boolean playing | |
| priority | back to summary |
|---|---|
| private int priority | |
| rate | back to summary |
|---|---|
| private double rate | |
| ready | back to summary |
|---|---|
| private boolean ready | |
| schedule | back to summary |
|---|---|
| private static final LinkedBlockingQueue<NativeMediaAudioClipPlayer. | |
| sourceClip | back to summary |
|---|---|
| private NativeMediaAudioClip sourceClip | |
| volume | back to summary |
|---|---|
| private double volume | |
| NativeMediaAudioClipPlayer | back to summary |
|---|---|
| private NativeMediaAudioClipPlayer(NativeMediaAudioClip clip, double volume, double balance, double rate, double pan, int loopCount, int priority) | |
| addPlayer | back to summary |
|---|---|
| private static boolean addPlayer(NativeMediaAudioClipPlayer newPlayer) | |
| balance | back to summary |
|---|---|
| public double balance() | |
| clipScheduler | back to summary |
|---|---|
| private static void clipScheduler() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object that) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getPlayerCount | back to summary |
|---|---|
| public static int getPlayerCount() | |
| getPlayerLimit | back to summary |
|---|---|
| public static int getPlayerLimit() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| invalidate | back to summary |
|---|---|
| public synchronized void invalidate() | |
| isPlaying | back to summary |
|---|---|
| public boolean isPlaying() | |
| isReady | back to summary |
|---|---|
| private boolean isReady() | |
| loopCount | back to summary |
|---|---|
| public int loopCount() | |
| onError | back to summary |
|---|---|
| public void onError(Object source, int errorCode, String message) Implements com. Doc from com. Reports the occurrence of a error in media processing. An error may or may not cause a stop in processing.
| |
| onFinish | back to summary |
|---|---|
| public void onFinish(PlayerStateEvent evt) Implements com. Doc from com. The finish state indicates playback has completed playback to the end.
| |
| onHalt | back to summary |
|---|---|
| public void onHalt(PlayerStateEvent evt) Implements com. Doc from com. The error notification provides information on any error during playback.
| |
| onPause | back to summary |
|---|---|
| public void onPause(PlayerStateEvent evt) Implements com. Doc from com. The pause state indicates playback has paused.
| |
| onPlaying | back to summary |
|---|---|
| public void onPlaying(PlayerStateEvent evt) Implements com. Doc from com. The play state indicates the media is beginning to play.
| |
| onReady | back to summary |
|---|---|
| public void onReady(PlayerStateEvent evt) Implements com. Doc from com. The ready state indicates the media is loaded. For best results, developers should wait on OnReady() before playing a media.
| |
| onStall | back to summary |
|---|---|
| public void onStall(PlayerStateEvent evt) Implements com.
| |
| onStop | back to summary |
|---|---|
| public void onStop(PlayerStateEvent evt) Implements com. Doc from com. The stop state indicates playback has paused and presentation time has been reset back to 0. If the player is asked to play() again, playback begins from the beginning.
| |
| onWarning | back to summary |
|---|---|
| public void onWarning(Object source, String message) | |
| pan | back to summary |
|---|---|
| public double pan() | |
| play | back to summary |
|---|---|
| public synchronized void play() | |
| playbackRate | back to summary |
|---|---|
| public double playbackRate() | |
| playClip | back to summary |
|---|---|
| public static void playClip(NativeMediaAudioClip clip, double volume, double balance, double rate, double pan, int loopCount, int priority) | |
| priority | back to summary |
|---|---|
| public int priority() | |
| setBalance | back to summary |
|---|---|
| public void setBalance(double balance) | |
| setLoopCount | back to summary |
|---|---|
| public void setLoopCount(int loopCount) | |
| setPan | back to summary |
|---|---|
| public void setPan(double pan) | |
| setPlaybackRate | back to summary |
|---|---|
| public void setPlaybackRate(double rate) | |
| setPriority | back to summary |
|---|---|
| public void setPriority(int priority) | |
| setVolume | back to summary |
|---|---|
| public void setVolume(double volume) | |
| source | back to summary |
|---|---|
| private Locator source() | |
| stop | back to summary |
|---|---|
| public void stop() | |
| stopPlayers | back to summary |
|---|---|
| public static void stopPlayers(Locator source) | |
| volume | back to summary |
|---|---|
| public double volume() | |
| Modifier and Type | Field and Description |
|---|---|
| private static final Thread |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Thread |
| schedulerThread | back to summary |
|---|---|
| private static final Thread schedulerThread | |
| Enthreaderator | back to summary |
|---|---|
| private Enthreaderator() | |
| getSchedulerThread | back to summary |
|---|---|
| public static Thread getSchedulerThread() | |
| Modifier and Type | Field and Description |
|---|---|
| private final URI | |
| private final int | |
| private final CountDownLatch | |
| private final MediaPlayer | |
| private final NativeMediaAudioClipPlayer |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object other)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public URI | |
| public int | |
| public MediaPlayer | |
| public NativeMediaAudioClipPlayer | |
| public int | |
| public void |
| clipURI | back to summary |
|---|---|
| private final URI clipURI | |
| command | back to summary |
|---|---|
| private final int command | |
| commandSignal | back to summary |
|---|---|
| private final CountDownLatch commandSignal | |
| mediaPlayer | back to summary |
|---|---|
| private final MediaPlayer mediaPlayer | |
| player | back to summary |
|---|---|
| private final NativeMediaAudioClipPlayer player | |
| SchedulerEntry | back to summary |
|---|---|
| public SchedulerEntry(NativeMediaAudioClipPlayer player) | |
| SchedulerEntry | back to summary |
|---|---|
| public SchedulerEntry(URI sourceURI, CountDownLatch signal) | |
| SchedulerEntry | back to summary |
|---|---|
| public SchedulerEntry(MediaPlayer mediaPlayer) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getClipURI | back to summary |
|---|---|
| public URI getClipURI() | |
| getCommand | back to summary |
|---|---|
| public int getCommand() | |
| getMediaPlayer | back to summary |
|---|---|
| public MediaPlayer getMediaPlayer() | |
| getPlayer | back to summary |
|---|---|
| public NativeMediaAudioClipPlayer getPlayer() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| signal | back to summary |
|---|---|
| public void signal() | |