I have a few sound events with layered sounds that don’t loop, and when I query the length of the event via EventSystem::getInfo(), it only gives me the length of the first sound in the event.
Is there a different way to query the length of sound events?
Thanks in advance.
- Big T asked 9 years ago
The length member is currently most useful for ‘simple events’ (ie the ones with just a single wav in it). The more complex events make length calculation hard (ie take the car event, or an event with a sustain parameter in it).
Are your sounds just placed in a couple of different layers, and there are no parameters with velocity? We can look at trying to calculate the length based on the largest sound in that case.
No, unfortunately there are several sound defs cross-faded into each other in a single layer with a velocity-based parameter modulating over top of everything. I was hoping to use a setup like this for music and be able to tell when the music had finished playing.
Shouldn’t there be some way for us to capture the one-shot ending impulse to denote when the event is over, rather than examining the actual length of the event? It seems like that might be a more fool-proof solution, but I’m not well-versed in the Ex end of things. I only use the Designer tool.
Also, would the new interactive music system be an alternative? I basically want to string music segments together, play them, and then know when the whole sequence is finished.
Please login first to submit.