I’m currently working on a project and we are using FMOD as the sound API. We decided to always have compressed formats of the audio file. I’ll write the code in a way that whenever the user provides a file path, the extension of the sound file will be checked, if it’s already compressed there will be no changes but if it’s in the .wav of any other uncompressed file, we will convert the file format to Vorbis or mp3.
As using the encoder codes directly in the code seems to be complicated (I tried to use Vorbis encoder download from Xiph.org and it seems that a lot of parameters need to be set for which I have no idea), I guess using the FMOD sound bank in the best choice.
However I need to know how I can import files to the sound bank and then load the desired format using C++ coding. I know that it’s possible to do that using the FMOD sound bank generator exe tool, but I need to add a piece of code in my project to do that automatically at run time (whenever an uncompressed sound file is obtained from the user).
Any help would be really appreciated.
- You must login to post comments