When I looked at the FMod site for the first time I noticed the volume envelope chart of a sound in the logo at the top. I want one for my project, but I dont see anything like it in the API.
What I want is to be able to follow the audio amplitude for a little mixer. What I imagine is a routine to give me the volume envelope at a specified interval.
This is easy, just take the ‘biggest’ value of the samples in a set range.
Question is how do I follow the playing position of that sample as easily as possible? Which call back routine(s) would be the easiest to implement this in?
Also is there a way to get the sample volumes, or volume averages regardless of which mixer is selected in a single format?
- Michael asked 17 years ago
The easiest, but not very accurate way is by calling FSOUND_GetVU or something like that. It will give you the volume and is updated every 25 ms I think.
The more accurate way is to use a dsp.
The problem is that it will give you different kind of values depending of the selected mixer.
The dsp will give you all sample values so you can sort out the data yourself.
There is an example of a dsp included with the fmod sdk.
- Adion answered 17 years ago
Please login first to submit.