com.tuneology.avm.player
Class LocalPlayer

java.lang.Object
  |
  +--com.tuneology.avm.player.Player
        |
        +--com.tuneology.avm.player.LocalPlayer
Direct Known Subclasses:
ALSAPlayer, CDPlayer, EsdPlayer, MadplayPlayer, MPlayer, NativePlayer, WinampPlayer, XanimPlayer, XmmsPlayer

public abstract class LocalPlayer
extends Player


Field Summary
protected  AudioMixer mixer
           
protected  MixerChannel mixerChannel
           
protected  boolean paused
           
 
Fields inherited from class com.tuneology.avm.player.Player
dev, listeners, looping
 
Constructor Summary
LocalPlayer(java.lang.String dev, java.lang.String name)
           
 
Method Summary
 boolean canEject()
           
 void eject()
           
 java.awt.Component getCanvas()
           
protected  void getMixerChannel(java.lang.String channelName)
           
protected  void getPcmChannel(java.lang.String mixerDevice)
           
abstract  Volume getVolume()
           
abstract  VolumeRange getVolumeRange()
           
protected  void initInstance()
           
abstract  void jumpTo(int pos)
           
abstract  void pause()
           
abstract  void play()
           
abstract  void playNextTrack()
           
abstract  void playPrevTrack()
           
 void setArtist(java.lang.String artist)
           
protected  void setTime(int tm)
           
 void setTitle(java.lang.String ttl)
           
 void setTotal(int tm)
           
 void setTrack(int track)
           
abstract  void setVolume(Volume vol)
           
abstract  void stop()
           
abstract  void unpause()
           
 
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, shutdown, shutdownPlayers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

paused

protected boolean paused

mixer

protected AudioMixer mixer

mixerChannel

protected MixerChannel mixerChannel
Constructor Detail

LocalPlayer

public LocalPlayer(java.lang.String dev,
                   java.lang.String name)
Method Detail

initInstance

protected void initInstance()
                     throws java.lang.Exception
Overrides:
initInstance in class Player

setArtist

public void setArtist(java.lang.String artist)

setTitle

public void setTitle(java.lang.String ttl)

setTrack

public void setTrack(int track)

jumpTo

public abstract void jumpTo(int pos)
                     throws java.lang.Exception
Throws:
java.lang.Exception -  

getVolumeRange

public abstract VolumeRange getVolumeRange()
                                    throws java.lang.Exception
Throws:
java.lang.Exception -  

getVolume

public abstract Volume getVolume()
                          throws java.lang.Exception
Throws:
java.lang.Exception -  

setVolume

public abstract void setVolume(Volume vol)
                        throws java.lang.Exception
Throws:
java.lang.Exception -  

eject

public void eject()
           throws java.lang.Exception
Throws:
java.lang.Exception -  

play

public abstract void play()
                   throws java.lang.Exception
Throws:
java.lang.Exception -  

stop

public abstract void stop()
                   throws java.lang.Exception
Throws:
java.lang.Exception -  

pause

public abstract void pause()
                    throws java.lang.Exception
Throws:
java.lang.Exception -  

unpause

public abstract void unpause()
                      throws java.lang.Exception
Throws:
java.lang.Exception -  

playNextTrack

public abstract void playNextTrack()
                            throws java.lang.Exception
Throws:
java.lang.Exception -  

playPrevTrack

public abstract void playPrevTrack()
                            throws java.lang.Exception
Throws:
java.lang.Exception -  

canEject

public boolean canEject()

getCanvas

public java.awt.Component getCanvas()
Overrides:
getCanvas in class Player

setTime

protected void setTime(int tm)

setTotal

public void setTotal(int tm)

getPcmChannel

protected void getPcmChannel(java.lang.String mixerDevice)
Parameters:
mixerDevice -  

getMixerChannel

protected void getMixerChannel(java.lang.String channelName)
                        throws java.io.IOException
Parameters:
channelName -  
Throws:
java.io.IOException -