I appear to have run into a bug while experimenting with custom codecs earlier today: calling
registerCodec always seems to return
FMOD_ERR_PLUGIN_VERSION, regardless of whether the
apiversion field of the given
FMOD_CODEC_DESCRIPTION struct is set to
FMOD_CODEC_PLUGIN_VERSION or not. Interestingly though, custom codecs seem to work fine when loaded as a separate DLL via
I’ve managed to reproduce this with both my own codec plugin and the included
fmod_codec_raw.cpp example (completely unmodified), with both MSYS2 MinGW and VS 2019.
Is this a bug or have I managed to miss something here?