gpt4 book ai didi

c++ - system->init() 的 FmodEx 错误

转载 作者:太空宇宙 更新时间:2023-11-04 11:28:33 25 4
gpt4 key购买 nike

我正在使用 FmodEx(Fmod 在 Ubuntu 中给我带来问题),我遇到了下一个问题。

System_Create(&system);
system->init(32, FMOD_INIT_NORMAL, 0)

我在 SoundEngine init 中使用了这个调用,但是当我运行代码时,它在执行 System 的方法 init 时终止。我无法获得 FMOD_RESULT,因为它永远不会正确结束

谁知道是什么问题?

感谢您的宝贵时间^^

编辑:我打印 System_Create 的结果并给我一个错误

FMOD_ERR_INVALID_PARAM

最佳答案

之前需要使用System_Create

FMOD::System     *system; //handle to FMOD engine
//init FMOD
FMOD::System_Create(&system);// create an instance of the game engine
system->init(32, FMOD_INIT_NORMAL, 0);// initialise the game engine with 32 channels

关于c++ - system->init() 的 FmodEx 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25726987/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com