alutLoadMemoryFromFile 调用错误
这是为我用 C# 和 Tai 制作的精灵游戏加载声音的函数的一部分。
int format;
float frequency;
int size;
IntPtr data = Alut.alutLoadMemoryFromFile(path, out format, out size, out frequency);
System.Diagnostics.Debug.Assert(data != IntPtr.Zero, "alutLoadMemoryFromFile failed.");
在我的电脑上,这个断言没问题。我把我的游戏交给了少数人,但在他们的计算机上,此断言失败了。可能是什么原因?
谢谢
This is part of a function that loads sound for my sprite game made in C# and Tao.
int format;
float frequency;
int size;
IntPtr data = Alut.alutLoadMemoryFromFile(path, out format, out size, out frequency);
System.Diagnostics.Debug.Assert(data != IntPtr.Zero, "alutLoadMemoryFromFile failed.");
On my PC this Assert is fine. I gave my game to few people and on their computers this Assert fails. What could possibly be the reason?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许您应该检查路径是否有效:
Maybe you should check whether the path is valid: