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().
- Julezz asked 6 years ago
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.
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.
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).
Please login first to submit.