|
|||||||||
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.CDPlayer
Interface to the Audio portion of CD-ROM drives.
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 | |
CDPlayer(CDDrive dr,
java.lang.String name,
java.lang.String volumeControl)
|
Method Summary | |
boolean |
canEject()
|
void |
close()
Close the player and release its resources. |
void |
cueFile(MediaData f)
Loads a file, sets the current position to the beginning, and pauses. |
void |
eject()
Eject CD from drive. |
int |
getSize()
Returns the maximum size of the current file. |
Volume |
getVolume()
Gets the audio output volume of the CD player. |
VolumeRange |
getVolumeRange()
|
void |
jumpTo(int pos)
Moves the current position. |
void |
pause()
Pause playing audio CD. |
void |
play()
Start playing audio CD. |
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 of the CD player. |
protected void |
shutdown()
|
void |
stop()
Stop playing audio CD. |
void |
unpause()
Unpause playing audio CD. |
Methods inherited from class com.tuneology.avm.player.LocalPlayer |
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 CDPlayer(CDDrive dr, java.lang.String name, java.lang.String volumeControl) throws java.lang.Exception
dr
- name
- volumeControl
- java.lang.Exception
- Method Detail |
public boolean playFile(java.lang.String url) throws java.lang.Exception
MediaPlayer
playFile
in interface MediaPlayer
java.lang.Exception
- public void cueFile(MediaData f) throws java.lang.Exception
MediaPlayer
cueFile
in interface MediaPlayer
java.lang.Exception
- public void playStream(java.io.InputStream str) throws java.lang.Exception
playStream
in interface MediaPlayer
str
- java.lang.Exception
- public boolean canEject()
canEject
in class LocalPlayer
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
java.lang.Exception
- protected void shutdown()
shutdown
in class Player
public void stop() throws java.lang.Exception
stop
in interface MediaPlayer
stop
in class LocalPlayer
java.lang.Exception
- public void pause() throws java.lang.Exception
pause
in interface MediaPlayer
pause
in class LocalPlayer
java.lang.Exception
- public void unpause() throws java.lang.Exception
unpause
in interface MediaPlayer
unpause
in class LocalPlayer
java.lang.Exception
- public void eject() throws java.lang.Exception
eject
in class LocalPlayer
java.lang.Exception
- public void play() throws java.lang.Exception
play
in interface MediaPlayer
play
in class LocalPlayer
com.tuneology.avm.player.MediaPlayer
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()
getVolumeRange
in interface MediaPlayer
getVolumeRange
in class LocalPlayer
com.tuneology.avm.player.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 close() throws java.lang.Exception
MediaPlayer
close
in interface MediaPlayer
java.lang.Exception
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |