jokey
Class KaraokePlayer

java.lang.Object
  |
  +--jokey.KaraokePlayer
All Implemented Interfaces:
javax.sound.midi.MidiDevice

public class KaraokePlayer
extends java.lang.Object
implements javax.sound.midi.MidiDevice


Nested Class Summary
protected  class KaraokePlayer.KaraokeFinisher
           
protected  class KaraokePlayer.KaraokeInfo
           
 
Nested classes inherited from class javax.sound.midi.MidiDevice
 
Field Summary
protected  javax.sound.midi.MidiDevice.Info mInfo
           
 
Constructor Summary
KaraokePlayer()
           
KaraokePlayer(javax.sound.midi.Sequencer seq, javax.sound.midi.Synthesizer synth)
           
 
Method Summary
 void close()
           
 jokey.PlayerContext getContext()
           
 javax.sound.midi.MidiDevice.Info getDeviceInfo()
           
 jokey.LyricListener getLyricListener()
           
 int getMaxReceivers()
           
 int getMaxTransmitters()
           
 long getMicrosecondPosition()
           
 javax.sound.midi.Receiver getReceiver()
           
 javax.sound.midi.Sequencer getSequencer()
           
 javax.sound.midi.Synthesizer getSynthesizer()
           
 javax.sound.midi.Transmitter getTransmitter()
           
 boolean isOpen()
           
static void main(java.lang.String[] argv)
           
 void open()
           
 void setContext(jokey.PlayerContext context)
           
 void setLyricListener(jokey.LyricListener lyrListener)
           
 void setSequence(javax.sound.midi.Sequence seq)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mInfo

protected javax.sound.midi.MidiDevice.Info mInfo
Constructor Detail

KaraokePlayer

public KaraokePlayer()
              throws javax.sound.midi.MidiUnavailableException

KaraokePlayer

public KaraokePlayer(javax.sound.midi.Sequencer seq,
                     javax.sound.midi.Synthesizer synth)
              throws javax.sound.midi.MidiUnavailableException
Method Detail

getDeviceInfo

public javax.sound.midi.MidiDevice.Info getDeviceInfo()
Specified by:
getDeviceInfo in interface javax.sound.midi.MidiDevice

getLyricListener

public jokey.LyricListener getLyricListener()

setLyricListener

public void setLyricListener(jokey.LyricListener lyrListener)

getSequencer

public javax.sound.midi.Sequencer getSequencer()

getSynthesizer

public javax.sound.midi.Synthesizer getSynthesizer()

getContext

public jokey.PlayerContext getContext()

setContext

public void setContext(jokey.PlayerContext context)

open

public void open()
          throws javax.sound.midi.MidiUnavailableException
Specified by:
open in interface javax.sound.midi.MidiDevice
javax.sound.midi.MidiUnavailableException

close

public void close()
Specified by:
close in interface javax.sound.midi.MidiDevice

isOpen

public boolean isOpen()
Specified by:
isOpen in interface javax.sound.midi.MidiDevice

getMicrosecondPosition

public long getMicrosecondPosition()
Specified by:
getMicrosecondPosition in interface javax.sound.midi.MidiDevice

getMaxReceivers

public int getMaxReceivers()
Specified by:
getMaxReceivers in interface javax.sound.midi.MidiDevice

getMaxTransmitters

public int getMaxTransmitters()
Specified by:
getMaxTransmitters in interface javax.sound.midi.MidiDevice

getReceiver

public javax.sound.midi.Receiver getReceiver()
                                      throws javax.sound.midi.MidiUnavailableException
Specified by:
getReceiver in interface javax.sound.midi.MidiDevice
javax.sound.midi.MidiUnavailableException

getTransmitter

public javax.sound.midi.Transmitter getTransmitter()
                                            throws javax.sound.midi.MidiUnavailableException
Specified by:
getTransmitter in interface javax.sound.midi.MidiDevice
javax.sound.midi.MidiUnavailableException

setSequence

public void setSequence(javax.sound.midi.Sequence seq)
                 throws javax.sound.midi.InvalidMidiDataException
javax.sound.midi.InvalidMidiDataException

start

public void start()

stop

public void stop()

main

public static void main(java.lang.String[] argv)