|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.org.toot.midi.core.MidiConnection
public class MidiConnection
This class represents a connection from a MidiOutput to a MidiInput. The connection may be created with various flags.
Field Summary | |
---|---|
static int |
INPUT_LOCKED
INPUT_LOCKED indicates that the connection may not ne connected to a different MidiInput, the connection destination is immutable. |
static int |
OUTPUT_LOCKED
OUTPUT_LOCKED indicates that the connection may not ne connected from a different MidiOutput, the connection source is immutable. |
static int |
PLAYBACK
PLAYBACK indicates that the Midi messages are already recorded such that Midi recording can ignore these connections |
static int |
SYSTEM
SYSTEM indicates that the connection is created by the system rather than by a user. |
Constructor Summary | |
---|---|
MidiConnection(MidiOutput from,
MidiInput to)
|
|
MidiConnection(MidiOutput from,
MidiInput to,
int flags)
Create a connection from a MidiOutput to a MidiInput with the specified flags. |
Method Summary | |
---|---|
void |
close()
|
void |
connectFrom(MidiOutput from)
|
void |
connectTo(MidiInput to)
|
MidiInput |
getMidiInput()
|
MidiOutput |
getMidiOutput()
|
boolean |
isPlayback()
|
boolean |
isSystem()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PLAYBACK
public static final int SYSTEM
public static final int OUTPUT_LOCKED
public static final int INPUT_LOCKED
Constructor Detail |
---|
public MidiConnection(MidiOutput from, MidiInput to)
public MidiConnection(MidiOutput from, MidiInput to, int flags)
from
- the MidiOutput to connect fromto
- the MidiInput to connect to.flags
- for the connection.Method Detail |
---|
public void connectTo(MidiInput to) throws javax.sound.midi.MidiUnavailableException
javax.sound.midi.MidiUnavailableException
public void connectFrom(MidiOutput from) throws javax.sound.midi.MidiUnavailableException
javax.sound.midi.MidiUnavailableException
public void close()
public MidiOutput getMidiOutput()
public MidiInput getMidiInput()
public boolean isSystem()
public boolean isPlayback()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |