|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.tuneology.avm.player.Player
|
+--com.tuneology.avm.player.LocalPlayer
|
+--com.tuneology.avm.player.MadplayPlayer
An interface to madplay, a sound file player for Unix.
| Fields inherited from class com.tuneology.avm.player.LocalPlayer |
mixer, mixerChannel, paused |
| Fields inherited from class com.tuneology.avm.player.Player |
dev, listeners, looping |
| Constructor Summary | |
MadplayPlayer(java.lang.String dev,
java.lang.String name)
Instantiate a new player. |
|
| Method Summary | |
void |
close()
Close the player and release its resources. |
void |
cueFile(MediaData mf)
Loads a file, sets the current position to the beginning, and pauses. |
static java.lang.String |
getDescription()
|
int |
getSize()
Returns the maximum size of the current file. |
static java.lang.String |
getVersionString()
|
Volume |
getVolume()
Gets the audio output volume. |
VolumeRange |
getVolumeRange()
|
void |
jumpTo(int pos)
Moves the current position. |
void |
pause()
Temporarily stops playing at the current position. |
void |
play()
Starts playing after calling stop or cuefile. |
boolean |
playFile(java.lang.String url)
Play the file, blocking until it's done. |
void |
playNextTrack()
|
void |
playPrevTrack()
|
void |
playStream(java.io.InputStream str)
|
void |
setVolume(Volume vol)
Sets the audio output volume. |
void |
shutdown()
|
void |
stop()
Stops playing and resets the current position to the beginning. |
void |
unpause()
Starts playing after calling pause. |
| Methods inherited from class com.tuneology.avm.player.LocalPlayer |
canEject, eject, getCanvas, getMixerChannel, getPcmChannel, initInstance, setArtist, setTime, setTitle, setTotal, setTrack |
| Methods inherited from class com.tuneology.avm.player.Player |
addStatusListener, findPlayerClass, findVideoPlayerClass, formatSeconds, getAudioDevices, getAudioPlayers, getDescription, getDevice, getDeviceDescription, getLoop, getName, getVersions, getVideoPlayers, newMediaPlayer, removeStatusListener, setDevice, setLoop, shutdownPlayers |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.tuneology.avm.player.MediaPlayer |
addStatusListener, getCanvas, getDevice, getLoop, getName, removeStatusListener, setArtist, setDevice, setLoop, setTitle, setTotal, setTrack |
| Constructor Detail |
public MadplayPlayer(java.lang.String dev,
java.lang.String name)
throws java.lang.Exception
dev - The output device. For the default audio output, specify blank or null.
For esd output, specify the form "esd:hostname".name - The name of the player.| Method Detail |
public boolean playFile(java.lang.String url)
throws java.lang.Exception
MediaPlayerplayFile in interface MediaPlayerurl - java.lang.Exception -
public void playStream(java.io.InputStream str)
throws java.lang.Exception
playStream in interface MediaPlayerstr - java.lang.Exception -
public void cueFile(MediaData mf)
throws java.lang.Exception
MediaPlayercueFile in interface MediaPlayerf - java.lang.Exception -
public int getSize()
throws java.lang.Exception
MediaPlayergetSize in interface MediaPlayerjava.lang.Exception -
public void jumpTo(int pos)
throws java.lang.Exception
MediaPlayerjumpTo in interface MediaPlayerjumpTo in class LocalPlayerpos - java.lang.Exception -
public void play()
throws java.lang.Exception
MediaPlayerplay in interface MediaPlayerplay in class LocalPlayerjava.lang.Exception -
public void playNextTrack()
throws java.lang.Exception
playNextTrack in interface MediaPlayerplayNextTrack in class LocalPlayerjava.lang.Exception -
public void playPrevTrack()
throws java.lang.Exception
playPrevTrack in interface MediaPlayerplayPrevTrack in class LocalPlayerjava.lang.Exception -
public VolumeRange getVolumeRange()
throws java.lang.Exception
getVolumeRange in interface MediaPlayergetVolumeRange in class LocalPlayerjava.lang.Exception -
public Volume getVolume()
throws java.io.IOException
getVolume in interface MediaPlayergetVolume in class LocalPlayerjava.io.IOException -
public void setVolume(Volume vol)
throws java.io.IOException
setVolume in interface MediaPlayersetVolume in class LocalPlayervol - java.io.IOException - public void shutdown()
shutdown in class Player
public void pause()
throws java.lang.Exception
MediaPlayerpause in interface MediaPlayerpause in class LocalPlayerjava.lang.Exception -
public void unpause()
throws java.lang.Exception
MediaPlayerunpause in interface MediaPlayerunpause in class LocalPlayerjava.lang.Exception -
public void stop()
throws java.lang.Exception
MediaPlayerstop in interface MediaPlayerstop in class LocalPlayerjava.lang.Exception - public void close()
MediaPlayerclose in interface MediaPlayercom.tuneology.avm.player.MediaPlayerjava.lang.Exception - public static java.lang.String getVersionString()
public static java.lang.String getDescription()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||