|
|||||||||
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
MediaPlayer
playFile
in interface MediaPlayer
url
- java.lang.Exception
- public void playStream(java.io.InputStream str) throws java.lang.Exception
playStream
in interface MediaPlayer
str
- java.lang.Exception
- public void cueFile(MediaData mf) throws java.lang.Exception
MediaPlayer
cueFile
in interface MediaPlayer
f
- java.lang.Exception
- public int getSize() throws java.lang.Exception
MediaPlayer
getSize
in interface MediaPlayer
java.lang.Exception
- public void jumpTo(int pos) throws java.lang.Exception
MediaPlayer
jumpTo
in interface MediaPlayer
jumpTo
in class LocalPlayer
pos
- java.lang.Exception
- public void play() throws java.lang.Exception
MediaPlayer
play
in interface MediaPlayer
play
in class LocalPlayer
java.lang.Exception
- public void playNextTrack() throws java.lang.Exception
playNextTrack
in interface MediaPlayer
playNextTrack
in class LocalPlayer
java.lang.Exception
- public void playPrevTrack() throws java.lang.Exception
playPrevTrack
in interface MediaPlayer
playPrevTrack
in class LocalPlayer
java.lang.Exception
- public VolumeRange getVolumeRange() throws java.lang.Exception
getVolumeRange
in interface MediaPlayer
getVolumeRange
in class LocalPlayer
java.lang.Exception
- public Volume getVolume() throws java.io.IOException
getVolume
in interface MediaPlayer
getVolume
in class LocalPlayer
java.io.IOException
- public void setVolume(Volume vol) throws java.io.IOException
setVolume
in interface MediaPlayer
setVolume
in class LocalPlayer
vol
- java.io.IOException
- public void shutdown()
shutdown
in class Player
public void pause() throws java.lang.Exception
MediaPlayer
pause
in interface MediaPlayer
pause
in class LocalPlayer
java.lang.Exception
- public void unpause() throws java.lang.Exception
MediaPlayer
unpause
in interface MediaPlayer
unpause
in class LocalPlayer
java.lang.Exception
- public void stop() throws java.lang.Exception
MediaPlayer
stop
in interface MediaPlayer
stop
in class LocalPlayer
java.lang.Exception
- public void close()
MediaPlayer
close
in interface MediaPlayer
com.tuneology.avm.player.MediaPlayer
java.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 |