0
0

Hi there

I was wondering if there was a way I could get a list of all sounds attached to an FMOD Event? In the Designer, I have Event which has a sound definition that contains multiple waveforms set to play at random. I’m wiggling my way around the API but I can only seem to get one random sound using Channel::getCurrentSound().

Thanks!

  • You must to post comments
0
0

Hi there,

What are you trying to do? Depending on your objective it might be better to use the low level API instead of the Event System.

That sound you´re getting from Channel::getCurrentSound() must be one of the waveforms in the Sound Definition that the Event is currently playing. They are chosen according to the sound def play mode.

  • You must to post comments
0
0

Yeah that’s what it’s currently doing. I don’t really want it to play tho, I’m just want the data.

I’m trying to create a reporter tool that tells me stuff about the state of our exported fev and fsb files. I want to know what events are there, what sounds each event uses, what sounds are stored in the different wavebanks, etc. That’s why I need the Event System – to access each event and get their sounds (if that’s possible).

  • You must to post comments
0
0

If you have the source FDPs you can just parse them for all the info you need. They are written in XML and contain everything that will end in the FEV/FSB.

  • You must to post comments
0
0

Yeah that would work, but unfortunately I can only use exported assets, just because the source and the export might be different if one isn’t up to date.

  • You must to post comments
0
0

Well, you can parse your FDP to gather that info, add it to the Events User Properties, and then build your projects to FEVs/FSBs. This way you’ll have the info available in runtime.
I looked around the API again but did not find much to help you. FMOD_EVENT_INFO has a FMOD_EVENT_WAVEBANK_INFO that might help you.

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.