public interface Receiver extends AutoCloseable
Receiver
接收
MidiEvent
对象通常做点有用的响应,如解释它们产生的声音或原MIDI输出。常见的MIDI合成器和MIDI输出端口的接收器包括。
MidiDevice
,
Synthesizer
,
Transmitter
Modifier and Type | Method and Description |
---|---|
void |
close()
指示应用程序已完成使用接收器,并且它所需要的有限的资源可能会被释放或提供。
|
void |
send(MidiMessage message, long timeStamp)
发送的MIDI信息和时间戳这个接收器。
|
void send(MidiMessage message, long timeStamp)
message
- MIDI消息发送
timeStamp
为消息的时间戳,在微秒。
IllegalStateException
如果接收器是封闭的
void close()
如果这Receiver
的创作产生了隐式开放的底层设备,该设备是通过这种方法隐式关闭。这是真实的除非装置保持开放的Receiver
或Transmitter
实例打开装置含蓄,除非该装置已开显。如果设备这Receiver
检索是通过调用MidiDevice.close
显式关闭,关闭的Receiver
,太。详细描述了打开/关闭的行为看MidiDevice
类的描述。
close
接口
AutoCloseable
MidiSystem.getReceiver()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.