mixGetTimidityCfg function

String? mixGetTimidityCfg()

Get full path of a previously-specified Timidity config file.

For example, "/etc/timidity.cfg"

If a path has never been specified, this returns NULL.

This returns a pointer to internal memory, and it should not be modified or free'd by the caller.

\returns the previously-specified path, or NULL if not set.

\since This function is available since SDL_mixer 3.0.0.

\sa Mix_SetTimidityCfg

extern SDL_DECLSPEC const char* SDLCALL Mix_GetTimidityCfg(void)

Implementation

String? mixGetTimidityCfg() {
  final mixGetTimidityCfgLookupFunction = libSdl3Mixer.lookupFunction<
      Pointer<Utf8> Function(), Pointer<Utf8> Function()>('Mix_GetTimidityCfg');
  final result = mixGetTimidityCfgLookupFunction();
  if (result == nullptr) {
    return null;
  }
  return result.toDartString();
}