org.tritonus.midi.device.alsa
Class AlsaSequencer.AlsaSequencerReceiver

java.lang.Object
  extended byorg.tritonus.share.midi.TMidiDevice.TReceiver
      extended byorg.tritonus.midi.device.alsa.AlsaSequencer.AlsaSequencerReceiver
All Implemented Interfaces:
AlsaReceiver, Receiver
Enclosing class:
AlsaSequencer

public class AlsaSequencer.AlsaSequencerReceiver
extends TMidiDevice.TReceiver
implements AlsaReceiver


Constructor Summary
AlsaSequencer.AlsaSequencerReceiver()
           
 
Method Summary
 boolean subscribeTo(int nClient, int nPort)
          Subscribe to the passed port.
 
Methods inherited from class org.tritonus.share.midi.TMidiDevice.TReceiver
close, isOpen, send
 
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.Receiver
close, send
 

Constructor Detail

AlsaSequencer.AlsaSequencerReceiver

public AlsaSequencer.AlsaSequencerReceiver()
Method Detail

subscribeTo

public boolean subscribeTo(int nClient,
                           int nPort)
Subscribe to the passed port. This establishes a subscription in the ALSA sequencer so that the device this Receiver belongs to receives event from the client:port passed as parameters.

Specified by:
subscribeTo in interface AlsaReceiver
Parameters:
nClient - The ALSA client number of the Transmitter that a read subscription should established to.
nPort - The ALSA port number of the Transmitter that a read subscription should established to.
Returns:
true if subscription was established, false otherwise