createSound containing umlauts fails with FMOD_ERR_INTERNAL

Hi there

I’m struggling when loading files containing umlauts. The code looks as follows:

#include “…/lib/Fmod/inc/fmod.hpp”
int main()
{
FMOD::System* pSystem;
FMOD::Sound* pSound;
FMOD::Channel* pChannel;
FMOD::System_Create(&pSystem);
pSystem->init(32, FMOD_INIT_NORMAL, 0);
FMOD_RESULT res = pSystem->createSound(“./media/testä.mp3”, FMOD_DEFAULT, 0, &pSound);
pSystem->playSound(pSound, 0, true, &pChannel);
pChannel->setPaused(false);
bool isPlaying = true;
while (isPlaying == true)
{
pChannel->isPlaying(&isPlaying);
}
}

Without the umlaut it works fine. Does anybody have an idea what I’m doing wrong here? Thanks in advance for any support.

Hi,

Having an umlaut character in your file path will cause a warning of “Path is not a valid UTF-8 string”. Unfortunately, the only solution would be to change the file name.

To see warnings initialize the FMOD debugger with:

FMOD::Debug_Initialize(FMOD_DEBUG_LEVEL_WARNING);

You will need to do this before you initialize the FMOD system.