1
0

Hi,
Using the FMOD Studio API I can get a list of EventDescriptions, Strings, Banks, VCAs, etc.
Is there a way I can get a list of sound keys that exist in an AudioTable?
I’d like to get a list of keys that are valid to use in the getSoundInfo method.
I am using C#.

I need this information at runtime because we are switching to FMOD from an existing system that used a naming convention to group sounds so we could use a key to play randomly from the group.
For example game logic that specified stone_footstep* would randomly play a sound from the following list found on disk:
stone_footstep1
stone_footstep2
stone_footstep3
etc.
Now that all these sounds are loaded into banks, I want to do the same thing with a hypothetical getSoundList method.
Additionally, game logic that has sound keys associated with various events could be validated against the sound table at runtime to ensure all the keys actually exist in the bank.

Thanks!

  • You must to post comments
1
0

In the case of the footstep example, it sounds like you are trying to make a Multisound via code instead of in Studio. In Studio you can use parameters for different surfaces and multisounds with randomization, see the examples Footsteps event for more info.

Is there a reason you are trying to do this in code rather than in Studio?

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.