VB.NET 中的循环缓冲区

发布于 2024-08-22 14:31:33 字数 149 浏览 5 评论 0原文

如何在 VB.NET 的堆上创建循环缓冲区?

这将用于通过 P/Invoke 对 winmm.dll waveoutopen 和 waveoutwrite 进行音频播放,以支持软件合成器的开发。

我目前使用 marshall 类在堆中构建常规字节数组。

How can I create a circular buffer on the heap in VB.NET ?

This would be used for audio playback via P/Invoke to winmm.dll waveoutopen and waveoutwrite to support development of a software synth.

I currently use the marshall class to build a regular array of bytes in the heap.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

来世叙缘 2024-08-29 14:31:33

好的,我会字节...

您真的是指圆形(如固定大小)还是可以使用链接列表?

为什么

要担心“堆”?这是嵌入式硬件系统上的 VB,而不是“c/c++”。使用术语“堆”是由于数据范围、生命周期或可用性(对于其他应用程序?如在 ALLOC/MALLOC 中)

OK, I'll byte...

Do you really mean CIRCULAR ( as in fixed size) or could you use a linked-list?

And

Why worry about "heap?" This is VB not "c/c++" on an embedded hardware system. Is the use of the term "heap" due to data scope, life cycle, or availability (to other apps? as in ALLOC/MALLOC)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文