欢迎来到-混音歌曲网 -最新音乐资讯站!
用户名: 密码: 注册帐号 忘记密码?
网站活动:
最热歌曲 : 异地的我们 - 恒恒 每日歌曲 : 阴阳极 - 苗小青      自己骗自己 - 张作甫      珍爱 - 王鹏      如果可以这样爱 - 边永城      金莲开开门 - 华少瑞明     
当前位置: 首页 > MIDI信息 > 技术 >

Windows管理midi的API,Managing MIDI Recording

时间:2018-03-28 07:37来源:网络整理 作者:管理员 点击:

Managing MIDI Recording

After you open a MIDI device, you can begin recording MIDI data. Windows provides the following functions for managing MIDI recording.

Value Meaning

midiInAddBuffer Sends a buffer to the device driver so it can be filled with recorded system-exclusive MIDI data.

midiInReset Stops MIDI recording and marks all pending buffers as done.

midiInStart Starts MIDI recording and resets the time stamp to zero.

midiInStop Stops MIDI recording.

To send buffers to the device driver for recording system-exclusive messages, use midiInAddBuffer. The application is notified as the buffers are filled with system-exclusive recorded data. For more information about the notification techniques, see Managing MIDI Data Blocks.

The midiInStart function begins the recording process. When recording system-exclusive messages, send at least one buffer to the driver before starting recording. To stop recording, use midiInStop. Before closing the device by using the midiInClose function, mark any pending data blocks as being done by calling midiInReset.

Applications that require time-stamped data use a callback function to receive MIDI data. If your timing requirements are not strict, you can use a window or thread callback. However, you cannot use an event callback to receive MIDI data.

To record system-exclusive messages with applications that do not use stream buffers, you must supply the device driver with buffers. These buffers are specified by using a MIDIHDR structure.



参考:https://msdn.microsoft.com/en-us/library/ms712038.aspx

(责任编辑:admin)
数据统计中,请稍等!
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
              
  • 听听小编为您选的歌曲吧