fmodEx 错误与系统>init()
FmodEx error with system->init()
我正在使用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
相关文章:
- GCC对可能有效的代码抛出init list生存期警告
- EASTL矢量<向量<int>>连续的
- GLEW/GLUT:调用init并创建一个窗口后,取消初始化并重新初始化?
- 将 out/in out 参数与 if/switch 的 init 语句一起使用
- 使用 std::ios_base::Init 正确初始化全局变量
- Pybind11: init<> with lambda
- 为什么别名声明不是有效的 init 语句(/simple-declaration)?
- 结构 init:字符**类型的标量初始值设定项两边的大括号
- 为什么基于范围类型的大括号上循环init列表是非法的c++
- 是否可以使用"if constexpr"来声明具有不同类型和init-expr的变量
- Android Studio TextView Init C++
- Pc Lint,如何使用 init() 抑制类的 err 613(可能使用空 ponter)
- 带有定制 GLFW 二进制 /usr/bin/ld 的 Centos 7: /usr/local/lib/libglfw3.a(init.c.o):".text"部分中无法识别的重定位 (0x2a)
- 如何强制调用类的全局实例的析构函数和构造函数(以便"re-init"类实例)
- 当调用时,为什么ranges ::累积的init as std :: Move(init)
- C - 创建矢量&lt; vector&lt; double&gt;&gt;矩阵具有分配而不是inizializ
- clang tidy pro type member init resharper
- C 字符串比较“祝您好运”&gt;“再见”
- Android NDK 未定义对 'std::ios_base::Init::Init()' 的引用
- 错误c++visual studio c2227左侧'->;Init';必须指向类/结构/联合/泛型类型