Windows 应用程序关闭
此问题与 MIDI 应用程序有关,该应用程序在启动时会收到 MIDI 缓冲区突然溢出的情况。
任何人都知道如何在程序接受传入数据之前清除从 MIDI Yoke 或 LoopBe 排队的任何 MIDI 数据?
This issue is about the MIDI application that will receive sudden overflow of MIDI buffer when the application startup.
Anyone has idea how to clear any MIDI data on queued from MIDI Yoke or LoopBe before the program accept incoming data?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我很难准确理解您在问什么,但听起来您想在开始使用输入流之前刷新它。如果是这种情况,那么您可以在程序的启动代码(伪代码)的早期使用这样的简单循环:
本质上,从输入队列中读取一点并将其丢弃,然后重复,直到队列已满。空的。如果不了解您的程序的更多信息,我无法给出更详细的描述。
I'm having a hard time understanding exactly what you are asking, but it sounds like you are wanting to flush an input stream before you start using it. If that is the case, then you can use a simple loop like this early in your program's start-up code (pseudo-code):
Essentially, read a little bit from the input queue and throw it away, then repeat until the queue is empty. I can't give a more detailed description than that without knowing more about your program.