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?