Here’s my problem: there’s a sound that I imported in FMOD which doesn’t sound as the original version. It seems that the import lowered its quality and added lower and higher frequencies.
I tried different codecs, rates and bit depths but it didn’t change anything.
The file in the asset folder plays well, though, but not inside FMOD.
Original sound on the left picture, once it’s imported in FMOD on the right.
Does anyone have experienced this kind of issue and what do you think I can do to solve this problem? Many thanks
Are you able to post the sound file you’re using or DM it to me to investigate further?
Hello Richard, thank you for your attention to this matter.
Here’s the original sound, corresponding to the left picture that I already posted.
Here’s the same sound once imported in FMOD:
As the volume level is quite low you may not hear any difference at first.
Actually, as soon as I import whatever shiny sound I get those added frequencies.
Here’s another sound comparison:
It looks like this might be caused by resampling. Could you please try encoding the original audio file as 48KHz and trying again?
I’ve just tried importing some encoded files as WAV 48KHz / 24 bit and unfortunately FMOD still transforms the sounds. I’ll DM you one of the files for you to try, if possible. Thanks
Some very specific sounds with harmonics and low frequencies in them can cause aliasing with a linear resampler.
The current fix for this is to set FMOD to use a higher quality sample rate converter/resampler at runtime. The code for this is
memset(&settings, 0, sizeof(settings));
settings.cbSize = sizeof(settings);
settings.resamplerMethod = FMOD_DSP_RESAMPLER_CUBIC;
just before any call to fmod initialization.
A better solution would be to have a high quality resampler button in studio to press (like the ‘stream’ button in the sound build properties), we’ll look at doing this in the future but you have a workaround.