Creating fsb with FSBank API Problem

I am using this code to convert a wav to fsb5

#include <stdio.h>
#include <iostream>
#include <FSB/fsbank.h>

using namespace std;

extern "C" _declspec(dllexport) void Create();

void main()
{
	const char* cache = "G:/cache";
	FSBank_Init(FSBANK_FSBVERSION_FSB5, FSBANK_INIT_NORMAL, (unsigned int)2, cache);
	FSBANK_SUBSOUND subsound;
	const char* const msg = "G:/u.wav";
	subsound.fileNames = &msg;
	subsound.overrideFlags = FSBANK_BUILD_DISABLESYNCPOINTS;
	subsound.overrideQuality = 1;
	subsound.desiredSampleRate = 1;
	const FSBANK_SUBSOUND* newSubsound = &subsound;

	FSBANK_RESULT res = FSBank_Build(newSubsound, 1, FSBANK_FORMAT_VORBIS, FSBANK_BUILD_DEFAULT | FSBANK_BUILD_DONTLOOP, 100, NULL, "G:/test.fsb5");
	cout << "works" << endl;
	getchar();
}

for some reason it does not work but do compile and the code gets executed but stuck
Here is the output i get

And i get no output fsb5 as well

Please help and guide me where I am wrong

1 Like

Linking in this case: FSBank Conversion of wav to fsb5 problem - #10 by CreatorsStudio
This issue was due to not initializing FSBANK_SUBSOUND, which needed to be initialized like this:

FSBANK_SUBSOUND subsound = {};