protected class MidiRouter.Connection extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected boolean |
active |
|
protected javax.sound.midi.MidiDevice |
destDevice |
|
protected java.io.File |
destFile |
|
protected javax.sound.midi.MidiDevice.Info |
destInfo |
|
protected boolean |
destIsSequencer |
|
protected boolean |
destIsSynthesizer |
|
protected javax.sound.midi.Receiver |
destReceiver |
|
protected MidiRouter.specType |
destType |
Type of specification for the destination of the connection.
|
protected javax.sound.midi.Receiver |
receiver |
|
protected javax.sound.midi.MidiDevice |
sourceDevice |
|
protected java.io.File |
sourceFile |
|
protected javax.sound.midi.MidiDevice.Info |
sourceInfo |
|
protected boolean |
sourceIsSequencer |
|
protected boolean |
sourceIsSynthesizer |
|
protected javax.sound.midi.Transmitter |
sourceTransmitter |
|
protected MidiRouter.specType |
sourceType |
Type of specification for the source of the connection.
|
protected javax.sound.midi.Transmitter |
transmitter |
Modifier | Constructor | Description |
---|---|---|
protected |
Connection() |
Modifier and Type | Method | Description |
---|---|---|
void |
closeConnection() |
|
java.io.File |
getDestFile() |
|
javax.sound.midi.Receiver |
getDestReceiver() |
|
javax.sound.midi.MidiDevice |
getSourceDevice() |
|
java.io.File |
getSourceFile() |
|
javax.sound.midi.MidiDevice.Info |
getSourceInfo() |
|
void |
openConnection() |
|
void |
setDestDevice(javax.sound.midi.MidiDevice value) |
|
void |
setDestFile(java.io.File value) |
|
void |
setDestInfo(javax.sound.midi.MidiDevice.Info value) |
Deprecated.
|
void |
setDestReceiver(javax.sound.midi.Receiver value) |
|
void |
setSourceDevice(javax.sound.midi.MidiDevice value) |
Provide information on the source device.
|
void |
setSourceFile(java.io.File value) |
|
void |
setSourceInfo(javax.sound.midi.MidiDevice.Info value) |
Deprecated.
|
void |
setSourceTransmitter(javax.sound.midi.Transmitter value) |
Specifies the
Transmitter object that is the
source of the MIDI data. |
protected MidiRouter.specType sourceType
protected javax.sound.midi.MidiDevice.Info sourceInfo
protected javax.sound.midi.MidiDevice sourceDevice
protected javax.sound.midi.Transmitter sourceTransmitter
protected boolean sourceIsSequencer
protected boolean sourceIsSynthesizer
protected java.io.File sourceFile
protected javax.sound.midi.Receiver receiver
protected javax.sound.midi.Transmitter transmitter
protected MidiRouter.specType destType
protected javax.sound.midi.MidiDevice.Info destInfo
protected javax.sound.midi.MidiDevice destDevice
protected javax.sound.midi.Receiver destReceiver
protected boolean destIsSequencer
protected boolean destIsSynthesizer
protected java.io.File destFile
protected boolean active
protected Connection()
public void setSourceDevice(javax.sound.midi.MidiDevice value) throws javax.sound.midi.MidiUnavailableException
value
- MidiDevice used for input to connectionjavax.sound.midi.MidiUnavailableException
public javax.sound.midi.MidiDevice getSourceDevice()
@Deprecated public void setSourceInfo(javax.sound.midi.MidiDevice.Info value)
This method is deprecated because there is a problem with the Java code when dealing with software synthesizers and sequencers. {@link MidiDevice.getDeviceInfo()} and {@link MidiSystem.getMidiDevice(MidiDevice.Info)} are not inverse functions in this situation.
input
- devicepublic void setSourceTransmitter(javax.sound.midi.Transmitter value)
Transmitter
object that is the
source of the MIDI data.value
- public javax.sound.midi.MidiDevice.Info getSourceInfo()
public void setSourceFile(java.io.File value)
public java.io.File getSourceFile()
public void setDestDevice(javax.sound.midi.MidiDevice value)
@Deprecated public void setDestInfo(javax.sound.midi.MidiDevice.Info value)
This method is deprecated because there is a problem with the Java code when dealing with software synthesizers and sequencers. {@link MidiDevice.getDeviceInfo()} and {@link MidiSystem.getMidiDevice(MidiDevice.Info)} are not inverse functions in this situation.
value
- device receiving information from connectionpublic void setDestReceiver(javax.sound.midi.Receiver value)
public javax.sound.midi.Receiver getDestReceiver()
public void setDestFile(java.io.File value)
public java.io.File getDestFile()
public void openConnection() throws javax.sound.midi.MidiUnavailableException, java.io.IOException, javax.sound.midi.InvalidMidiDataException
javax.sound.midi.MidiUnavailableException
java.io.IOException
javax.sound.midi.InvalidMidiDataException
public void closeConnection() throws javax.sound.midi.MidiUnavailableException
javax.sound.midi.MidiUnavailableException
Copyright © 2017. All rights reserved.