org.tritonus.midi.device.alsa
Class AlsaSequencer.AlsaSequencerReceiver
java.lang.Object
org.tritonus.share.midi.TMidiDevice.TReceiver
org.tritonus.midi.device.alsa.AlsaSequencer.AlsaSequencerReceiver
- All Implemented Interfaces:
- AlsaReceiver, Receiver
- Enclosing class:
- AlsaSequencer
- public class AlsaSequencer.AlsaSequencerReceiver
- extends TMidiDevice.TReceiver
- implements AlsaReceiver
Method Summary |
boolean |
subscribeTo(int nClient,
int nPort)
Subscribe to the passed port. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlsaSequencer.AlsaSequencerReceiver
public AlsaSequencer.AlsaSequencerReceiver()
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