org.tritonus.share.midi
Class TDirectSynthesizer
java.lang.Object
org.tritonus.share.midi.TMidiDevice
org.tritonus.share.midi.TDirectSynthesizer
- All Implemented Interfaces:
- MidiDevice, Synthesizer
- public abstract class TDirectSynthesizer
- extends TMidiDevice
- implements Synthesizer
Base class for Synthesizer implementations. This base class is
for Synthesizer implementations that do not itself operate on
MIDI, but instread implement the MidiChannel interface. For these
implementations, MIDI behaviour is simulated on top of
MidiChannel.
- Author:
- Matthias Pfisterer
Method Summary |
protected void |
closeImpl()
Subclasses have to override this method to be notified of
closeing. |
protected void |
openImpl()
Subclasses have to override this method to be notified of
opening. |
protected void |
receive(MidiMessage message,
long lTimeStamp)
|
Methods inherited from class org.tritonus.share.midi.TMidiDevice |
close, getDeviceInfo, getMaxReceivers, getMaxTransmitters, getMicrosecondPosition, getReceiver, getReceivers, getTransmitter, getTransmitters, getUseIn, getUseOut, isOpen, open, sendImpl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.sound.midi.Synthesizer |
getAvailableInstruments, getChannels, getDefaultSoundbank, getLatency, getLoadedInstruments, getMaxPolyphony, getVoiceStatus, isSoundbankSupported, loadAllInstruments, loadInstrument, loadInstruments, remapInstrument, unloadAllInstruments, unloadInstrument, unloadInstruments |
Methods inherited from interface javax.sound.midi.MidiDevice |
close, getDeviceInfo, getMaxReceivers, getMaxTransmitters, getMicrosecondPosition, getReceiver, getReceivers, getTransmitter, getTransmitters, isOpen, open |
TDirectSynthesizer
public TDirectSynthesizer(MidiDevice.Info info)
- Initialize this class.
This sets the info from the passed one, sets the open status
to false, the number of Receivers to zero and the collection
of Transmitters to be empty.
- Parameters:
info
- The info object that describes this instance.
openImpl
protected void openImpl()
throws MidiUnavailableException
- Subclasses have to override this method to be notified of
opening.
- Overrides:
openImpl
in class TMidiDevice
- Throws:
MidiUnavailableException
closeImpl
protected void closeImpl()
- Subclasses have to override this method to be notified of
closeing.
- Overrides:
closeImpl
in class TMidiDevice
receive
protected void receive(MidiMessage message,
long lTimeStamp)
- Overrides:
receive
in class TMidiDevice