Package org.jjazz.midi.api.device
Class JJazzMidiDevice
java.lang.Object
org.jjazz.midi.api.device.JJazzMidiDevice
- All Implemented Interfaces:
AutoCloseable
,MidiDevice
- Direct Known Subclasses:
ChannelRerouter
,MidiChannelDispatcher
,MidiFilter
A generic MidiDevice that should be subclassed to create your own MidiDevice.
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.sound.midi.MidiDevice
MidiDevice.Info
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
JJazzMidiDevice
-
-
Method Details
-
getDeviceInfo
- Specified by:
getDeviceInfo
in interfaceMidiDevice
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceMidiDevice
-
open
public void open()- Specified by:
open
in interfaceMidiDevice
-
isOpen
public boolean isOpen()- Specified by:
isOpen
in interfaceMidiDevice
-
getMaxTransmitters
public int getMaxTransmitters()- Specified by:
getMaxTransmitters
in interfaceMidiDevice
-
getMaxReceivers
public int getMaxReceivers()- Specified by:
getMaxReceivers
in interfaceMidiDevice
-
getMicrosecondPosition
public long getMicrosecondPosition()- Specified by:
getMicrosecondPosition
in interfaceMidiDevice
-
getTransmitter
- Specified by:
getTransmitter
in interfaceMidiDevice
-
getReceiver
Must be overridden by subclasses.- Specified by:
getReceiver
in interfaceMidiDevice
-
getTransmitters
- Specified by:
getTransmitters
in interfaceMidiDevice
-
getReceivers
- Specified by:
getReceivers
in interfaceMidiDevice
-