FMOD FMOD_OUTPUTTYPE_WAVWRITER_NRT 未找到文件错误
我正在尝试在 WAVWRITER_NRT 模式下运行 FMOD。我正在修改与 FMOD 捆绑在一起的示例,但我总是在 FMOD_System_Init 上收到错误。它说找不到该文件。
我认为它会创建一个文件来写入输出。我还尝试将具有该名称的 wav 文件放入该位置。尽管如此,我总是有这个错误。
代码如下:
result = FMOD_System_Create(&gSystem);
CHECK_RESULT(result);
result = FMOD_System_SetOutput(gSystem, FMOD_OUTPUTTYPE_WAVWRITER_NRT);
CHECK_RESULT(result);
result = FMOD_System_Init(gSystem, 4, FMOD_INIT_NORMAL, "/sdcard/fmod/out.wav");
CHECK_RESULT(result);
result = FMOD_System_CreateSound(gSystem, "/sdcard/fmod/test1.mp3", FMOD_CREATESTREAM, 0, &gSound);
CHECK_RESULT(result);
请帮忙!
i'm trying to run FMOD in WAVWRITER_NRT mode. I was modifying the example bundled with FMOD, but I always get an error on FMOD_System_Init. It says that the file cannot be found.
I thought it would create a file to write output to. I have also tried placing a wav file with that name into that location. Still, I always have this error.
Here is the code:
result = FMOD_System_Create(&gSystem);
CHECK_RESULT(result);
result = FMOD_System_SetOutput(gSystem, FMOD_OUTPUTTYPE_WAVWRITER_NRT);
CHECK_RESULT(result);
result = FMOD_System_Init(gSystem, 4, FMOD_INIT_NORMAL, "/sdcard/fmod/out.wav");
CHECK_RESULT(result);
result = FMOD_System_CreateSound(gSystem, "/sdcard/fmod/test1.mp3", FMOD_CREATESTREAM, 0, &gSound);
CHECK_RESULT(result);
Please help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将 WRITE_EXTERNAL_STORAGE 权限添加到清单中。
Add WRITE_EXTERNAL_STORAGE permission to the manifest.