org.herac.tuxguitar.player
Class NullPlayer

java.lang.Object
  extended by org.herac.tuxguitar.player.NullPlayer
All Implemented Interfaces:
MidiPlayer

public class NullPlayer
extends java.lang.Object
implements MidiPlayer


Constructor Summary
NullPlayer()
           
 
Method Summary
 void close()
           
 Option getConfigOption(ConfigEditor editor, ToolBar toolBar, Composite parent)
           
 java.lang.String getInstrumentName(int instrument)
           
 javax.sound.midi.Soundbank getSoundbank()
           
 java.util.List getSystemErrors()
           
 long getTickPosition()
           
 void init()
           
 boolean isMetronomeEnabled()
           
 boolean isPaused()
           
 boolean isRunning()
           
 boolean loadSoundbank(java.io.File file)
           
 void pause()
           
 void play()
           
 void playBeat(SongTrack track, java.util.List notes)
           
 void reset()
           
 void setMetronomeEnabled(boolean metronomeEnabled)
           
 void setSynthesizer(javax.sound.midi.Synthesizer synthesizer)
           
 void setTickPosition(long position, long startMove)
           
 void stop()
           
 void updateControllers()
           
 void updatePrograms()
           
 void write(java.io.OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullPlayer

public NullPlayer()
Method Detail

close

public void close()
Specified by:
close in interface MidiPlayer

getInstrumentName

public java.lang.String getInstrumentName(int instrument)
Specified by:
getInstrumentName in interface MidiPlayer

getSoundbank

public javax.sound.midi.Soundbank getSoundbank()
Specified by:
getSoundbank in interface MidiPlayer

getTickPosition

public long getTickPosition()
Specified by:
getTickPosition in interface MidiPlayer

init

public void init()
Specified by:
init in interface MidiPlayer

isMetronomeEnabled

public boolean isMetronomeEnabled()
Specified by:
isMetronomeEnabled in interface MidiPlayer

isPaused

public boolean isPaused()
Specified by:
isPaused in interface MidiPlayer

isRunning

public boolean isRunning()
Specified by:
isRunning in interface MidiPlayer

loadSoundbank

public boolean loadSoundbank(java.io.File file)
Specified by:
loadSoundbank in interface MidiPlayer

pause

public void pause()
Specified by:
pause in interface MidiPlayer

play

public void play()
Specified by:
play in interface MidiPlayer

playBeat

public void playBeat(SongTrack track,
                     java.util.List notes)
Specified by:
playBeat in interface MidiPlayer

reset

public void reset()
Specified by:
reset in interface MidiPlayer

setMetronomeEnabled

public void setMetronomeEnabled(boolean metronomeEnabled)
Specified by:
setMetronomeEnabled in interface MidiPlayer

setSynthesizer

public void setSynthesizer(javax.sound.midi.Synthesizer synthesizer)
Specified by:
setSynthesizer in interface MidiPlayer

setTickPosition

public void setTickPosition(long position,
                            long startMove)
Specified by:
setTickPosition in interface MidiPlayer

stop

public void stop()
Specified by:
stop in interface MidiPlayer

updateControllers

public void updateControllers()
Specified by:
updateControllers in interface MidiPlayer

updatePrograms

public void updatePrograms()
Specified by:
updatePrograms in interface MidiPlayer

write

public void write(java.io.OutputStream out)
Specified by:
write in interface MidiPlayer

getSystemErrors

public java.util.List getSystemErrors()
Specified by:
getSystemErrors in interface MidiPlayer

getConfigOption

public Option getConfigOption(ConfigEditor editor,
                              ToolBar toolBar,
                              Composite parent)
Specified by:
getConfigOption in interface MidiPlayer