org.tritonus.midi.device.alsa
Class AlsaSynthesizer

java.lang.Object
  extended byorg.tritonus.share.midi.TMidiDevice
      extended byorg.tritonus.midi.device.alsa.AlsaMidiDevice
          extended byorg.tritonus.midi.device.alsa.AlsaSynthesizer
All Implemented Interfaces:
AlsaMidiIn.AlsaMidiInListener, MidiDevice, Synthesizer

public class AlsaSynthesizer
extends AlsaMidiDevice
implements Synthesizer


Nested Class Summary
 
Nested classes inherited from class org.tritonus.share.midi.TMidiDevice
TMidiDevice.Info, TMidiDevice.TReceiver, TMidiDevice.TTransmitter
 
Nested classes inherited from class javax.sound.midi.MidiDevice
MidiDevice.Info
 
Constructor Summary
AlsaSynthesizer(int nClient, int nPort, int nVoices)
           
 
Method Summary
protected  void closeImpl()
          Subclasses have to override this method to be notified of closeing.
 Instrument[] getAvailableInstruments()
           
 MidiChannel[] getChannels()
           
 Soundbank getDefaultSoundbank()
           
 long getLatency()
           
 Instrument[] getLoadedInstruments()
           
 int getMaxPolyphony()
           
 VoiceStatus[] getVoiceStatus()
           
 boolean isSoundbankSupported(Soundbank soundbank)
           
 boolean loadAllInstruments(Soundbank soundbank)
           
 boolean loadInstrument(Instrument instrument)
           
 boolean loadInstruments(Soundbank soundbank, Patch[] aPatches)
           
protected  void openImpl()
          Subclasses have to override this method to be notified of opening.
 boolean remapInstrument(Instrument from, Instrument to)
           
 void unloadAllInstruments(Soundbank soundbank)
           
 void unloadInstrument(Instrument instrument)
           
 void unloadInstruments(Soundbank soundbank, Patch[] aPatches)
           
 
Methods inherited from class org.tritonus.midi.device.alsa.AlsaMidiDevice
dequeueEvent, getMicroSecondPosition, getReceiver, getTransmitter, receive
 
Methods inherited from class org.tritonus.share.midi.TMidiDevice
close, getDeviceInfo, getMaxReceivers, getMaxTransmitters, getMicrosecondPosition, getReceivers, 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.MidiDevice
close, getDeviceInfo, getMaxReceivers, getMaxTransmitters, getMicrosecondPosition, getReceiver, getReceivers, getTransmitter, getTransmitters, isOpen, open
 

Constructor Detail

AlsaSynthesizer

public AlsaSynthesizer(int nClient,
                       int nPort,
                       int nVoices)
Method Detail

openImpl

protected void openImpl()
Description copied from class: TMidiDevice
Subclasses have to override this method to be notified of opening.

Overrides:
openImpl in class AlsaMidiDevice

closeImpl

protected void closeImpl()
Description copied from class: TMidiDevice
Subclasses have to override this method to be notified of closeing.

Overrides:
closeImpl in class AlsaMidiDevice

getMaxPolyphony

public int getMaxPolyphony()
Specified by:
getMaxPolyphony in interface Synthesizer

getLatency

public long getLatency()
Specified by:
getLatency in interface Synthesizer

getChannels

public MidiChannel[] getChannels()
Specified by:
getChannels in interface Synthesizer

getVoiceStatus

public VoiceStatus[] getVoiceStatus()
Specified by:
getVoiceStatus in interface Synthesizer

isSoundbankSupported

public boolean isSoundbankSupported(Soundbank soundbank)
Specified by:
isSoundbankSupported in interface Synthesizer

loadInstrument

public boolean loadInstrument(Instrument instrument)
Specified by:
loadInstrument in interface Synthesizer

unloadInstrument

public void unloadInstrument(Instrument instrument)
Specified by:
unloadInstrument in interface Synthesizer

remapInstrument

public boolean remapInstrument(Instrument from,
                               Instrument to)
Specified by:
remapInstrument in interface Synthesizer

getDefaultSoundbank

public Soundbank getDefaultSoundbank()
Specified by:
getDefaultSoundbank in interface Synthesizer

getAvailableInstruments

public Instrument[] getAvailableInstruments()
Specified by:
getAvailableInstruments in interface Synthesizer

getLoadedInstruments

public Instrument[] getLoadedInstruments()
Specified by:
getLoadedInstruments in interface Synthesizer

loadAllInstruments

public boolean loadAllInstruments(Soundbank soundbank)
Specified by:
loadAllInstruments in interface Synthesizer

unloadAllInstruments

public void unloadAllInstruments(Soundbank soundbank)
Specified by:
unloadAllInstruments in interface Synthesizer

loadInstruments

public boolean loadInstruments(Soundbank soundbank,
                               Patch[] aPatches)
Specified by:
loadInstruments in interface Synthesizer

unloadInstruments

public void unloadInstruments(Soundbank soundbank,
                              Patch[] aPatches)
Specified by:
unloadInstruments in interface Synthesizer