Play audio outside of banks at runtime


#1

Hi, I wonder if it is possible to add and play audio files (at runtime) with fmod that are not saved in banks and which were not originally packaged in the game.
I’m not sure, but is it possible to do that with programmer sounds? Or is there any other way?


#2

Hi Jonas,
This is pretty easy, from the studio api you just grab a handle to the ‘low level api’ system object and go from there

https://www.fmod.com/resources/documentation-api?page=content/generated/FMOD_Studio_System_GetLowLevelSystem.html#/

You can then call createSound and playSound on any loose files.