[Openal] Sound level equalizer?
Jason Daly
jdaly at ist.ucf.edu
Wed Mar 19 08:24:42 PDT 2008
bojkar wrote:
> Hello I want do "equalizer" something like that :
> http://www.nabble.com/file/p16142158/1.jpg
> This equalizer is used to render level of recording sound and I want to get
> this sound level. I don't find anything in openal docs, maybe this is in
> mixer api? Please help.
>
So, you really want some kind of sound level meter (an "equalizer" is
something different entirely).
If you're doing your recording with OpenAL, you can just grab the sample
values that are captured and use that to drive the display. On each
update, you'll probably want to take the average over a small range of
samples to come up with the current level. Others might have a more
"correct" way to do this, but this has worked for me in the past.
The Win32 mixer api also often has "meter" controls that you can use to
do this, but for something this simple, that might be the hard way.
--
--"J"
"I'm a castaway stranded in a desolate land,
I can see the footprints in the virtual sand."
--Neil Peart
More information about the Openal
mailing list