How to obtain the audio format of FSB files

Hello,

My project’s audio adopts the same encoding format, so I need to use C++scripts to batch verify whether there are unexpected situations in the audio format.

I use the following code to read the audio format.

system->createSound(fsb_path, FMOD_DEFAULT, 0, &fsb);
fsb->getSubSound(count, &subsound);
subsound->getFormat(&type, &format, &channels, &bits);

But this code cannot retrieve the encoding format I selected in fmod designer.