Using 1.07.07 and UE4 4.10.4 on PC. When we call FMOD::System::createSound to create a user-created sound, we get this warning message:
LogFMOD:Warning: c:\jk\workspace\Build__1.7__UE4Libs_Win\lowlevel_api\src\fmod_file.cpp(545) - File offset: 0 + length: 512 > actual file size 0, truncating length.
Are we doing something wrong? Or does it just always spit out this warning in this situation, when there is no file involved?
This is our code:
auto* StudioSystem = IFMODStudioModule::Get().GetStudioSystem(EFMODSystemContext::Runtime);
FMOD::System* System;
FMOD_RESULT result = StudioSystem->getLowLevelSystem(&System);
FMOD_CREATESOUNDEXINFO exinfo;
memset(&exinfo, 0, sizeof(FMOD_CREATESOUNDEXINFO));
exinfo.cbsize = sizeof(FMOD_CREATESOUNDEXINFO);
exinfo.numchannels = 1;
exinfo.defaultfrequency = CHAT_BUFFER_SIZE;
exinfo.decodebuffersize = CHAT_AUDIO_REQUEST_BUFFER_SIZE;
exinfo.length = CHAT_AUDIO_REQUEST_BUFFER_SIZE * exinfo.numchannels * sizeof(uint8);
exinfo.format = FMOD_SOUND_FORMAT_PCM16;
exinfo.pcmreadcallback = pcmreadcallback;
result = System->createSound(0, FMOD_OPENUSER | FMOD_LOOP_NORMAL | FMOD_CREATESTREAM, &exinfo, &Sound);