I’m working on an graphical application with models, where a person ‘speaks’ an ogg file. I use the FSOUND_DSP_GetSpectrum function from FMOD to open the mouth based on the average volume of the band [250-2000 Hz]. This works just fine, but when I play more ogg files at the same time (on different channels though), the ‘speaking’ no longer works, ’cause the spectrum is from the final output, not from a single stream.
So my question is:
Is there ANY way to get the spectrum from a single stream?
- Marc aka Foddex asked 15 years ago
[quote="Marc aka Foddex":1ec01xzd]And what is the scheduled release date for FMOD 4? I really like the system and I’m considering using it in a commercial application. But i’m not sure if I’ll do this due to the fact that only global spectrums are possible….[/quote:1ec01xzd]
Like Brett said, you could always use a DSP callback…
We do something similar in our games for actors in cutscenes. The difference is that we preprocess the lip syncing by creating a small data file based on the volume of the wave file. Then in the game we play the wave file and use the data file to move the actors mouth.
Please login first to submit.