作者vivimice (麦斯◎我的奶酪在哪里﹖)
看板Visual_Basic
标题[API] Event Types
时间Wed Jul 27 15:28:13 2005
来源﹕mk:@MSITStore:E:\Microsoft%20Visual%20Studio\MSDN98\98VS\2052\
MultiMed.chm::/devdoc/live/pdgrmm/midi_50dv.htm
翻译﹕vivimice 智慧权所有
定位﹕平台SDK/Graphics and MultiMedia Services/MultiMedia Audio/
Musical Intrument Device Interface/About MIDI/Stream Buffers
原载﹕缥缈水云间 (bbs.freecity.cn)
Event Types
事件种类
The dwEvent member of the MIDIEVENT structure describes the MIDI event that is
to take place. Short events fit entirely into this member. Long events
require one or more doubleword values in addition to the dwEvent member to
store the event descriptions.
MIDIEVENT结构的dwEvent成员描述了即将发生MIDI事件。短事件完全适合这个成员(译者
注﹕短事件的全部信息可以保存在这个成员中)。长事件则要求一个甚至更多的双字的值
来保存事件的描述。
The high byte of the dwEvent member contains information about whether the
event is long or short and about whether a callback is generated along with
the event. In addition, this byte is used to describe the event type. The
remaining 24 bits of the dwEvent member are used either to contain the event
parameters (for short messages) or to contain the length of the event
parameters (for long messages). To extract information from the dwEvent member,
use the MEVT_EVENTTYPE and MEVT_EVENTPARM macros.
dwEvent成员的高字节包含了关於这个事件的这些信息﹕长事件还是短事件以及是否在事
件发生的时候产生一个回调。另外﹐这个字节也用来描述事件类型。dwEvent剩余的24位
被用来存储事件的参数(对於短消息)或者存储事件参数的长度(对於长消息)。要从
dwEvent成员中提取信息的话可以使用MEVT_EVENTTYPE和MEVT_EVENTPARAM宏。
For a description of the predefined event types, see the reference material
for the MIDIEVENT structure.
请参阅MIDIEVENT结构的引用材料来获得更多关於已经预定义的事件种类的描述。
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.108.88.250