trigger events at certain audio q-points

Hi there guys

I have an audio file +/- 5 minutes. I need to create some system that can trigger events at certain pre programmed q-points during this time. I’m carefull to make the triggering time based, because I don’t know how accurate that will be, but it certainly does not have to be sample-precision. I can give or take +/- 2 seconds inaccuracy for my purpose.
The other concern I have for using a time-based system is the performance cost.

So, is there ANY other way someone can think of that is more directly linked to that actual audio file?

Thanks

I would create a empty animation clip and put Events at points in the clip which can be your triggers.

A nice easy way to do it which you can test and easily tweak.

http://unity3d.com/support/documentation/Components/animeditor-AnimationEvents.html

Hi Karljj

That might be the perfect solution, thanks. Don’t know why I didn’t think about that one!