Can't find any documentation on FMOD_ErrorString()

Hi,
just trying to setup fmod studio. I downloaded and linked the libraries core and studio (and bank also just to try).

Copying the code from here: https://www.fmod.com/docs/2.02/api/white-papers-getting-started.html#fmod-studio-api-initialization

I can’t find the type: FMOD_ErrorString

FMOD_RESULT result;
    
    FMOD::Studio::System* system = NULL;

    result = FMOD::Studio::System::create(&system); // Create the Studio System object.
    if (result != FMOD_OK)
    {
        printf("FMOD error! (%d) %s\n", result, FMOD_ErrorString(result));
        exit(-1);
    }

    // Initialize FMOD Studio, which will also initialize FMOD Core
    result = system->initialize(512, FMOD_STUDIO_INIT_NORMAL, FMOD_INIT_NORMAL, 0);
    if (result != FMOD_OK)
    {
        printf("FMOD error! (%d) %s\n", result, FMOD_ErrorString(result));
        exit(-1);
    }

Edit: On top of that I realised that if I remove that line of code I still have issues when running the app (note that it builds fine): it instantly exits with “Process finished with exit code -1,073,741,515.”
I’m pretty sure the culprit is FMOD::Studio::System::create(&system)

I can’t find any documentation anywhere, can someone help me?

Hi,

With the FMOD Engine downloads we include examples under: C:\Program Files (x86)\FMOD SoundSystem\FMOD Studio API Windows\api\studio\examples\vs2019\examples.sln. In the examples, we have an ERRCHECK() function which outlines how to use the FMOD_ErrorString(). Unfortunately, there is no documentation for this function.

Hope this helps