[API] Event Types

看板Visual_Basic作者 (麥斯◎我的奶酪在哪裡﹖)時間19年前 (2005/07/27 15:27), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
來源﹕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
文章代碼(AID): #12vpTScF (Visual_Basic)
文章代碼(AID): #12vpTScF (Visual_Basic)