FSBank_Build keeps returning invalid format

Hi, I’ve been trying to get this to work, but no matter what .wav file I try it keeps returning invalid format.

void Create()
{
FSBANK_RESULT result = FSBank_Init(FSBANK_FSBVERSION_FSB5, FSBANK_INIT_NORMAL, 2, “cache”);

FSBANK_SUBSOUND subsound = { NULL };
const char* const msg = "1.wav";
subsound.fileNames = &msg;
subsound.overrideFlags = FSBANK_BUILD_DISABLESYNCPOINTS;
subsound.overrideQuality = 100;
subsound.desiredSampleRate = 0;
subsound.numFileNames = 1;
const FSBANK_SUBSOUND* newSubsound = &subsound;

result = FSBank_Build(newSubsound, 1, FSBANK_FORMAT_VORBIS, FSBANK_BUILD_DEFAULT | FSBANK_BUILD_DONTLOOP, 100, NULL, "test.fsb5");
cout << FSBANK_RESULT_TOSTRING(result) << endl;

getchar();

}

What is wrong?

Well, I found the problem… I’m a noob for not having thought about it sooner. I didn’t updated the fsbank.h from @CreatorsStudio project. An update fixed everything

1 Like

Hi,

Thank you for sharing your solution.