fmodEx 错误与系统>init()

FmodEx error with system->init()

本文关键字:init gt 错误 系统 fmodEx      更新时间:2023-10-16

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

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

我在SoundEngineinit中使用这个调用,但当我运行代码时,它在执行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