Jump to content


Sound level meter


2 replies to this topic

#1 bojkar

    New Member

  • Members
  • Pip
  • 7 posts

Posted 25 March 2008 - 01:09 PM

Hello I want do some kind of sound level meter ("equalizer" something like that) :
Posted Image
This equalizer is used to render level of recording sound I won do this with mixer api but I don't know how. I know how to get volume, mute itp but don't know this. I'd searched a lot of search engines and forums and nothing found :/ Please help.

P.S. Sorry for my english

#2 roel

    Senior Member

  • Members
  • PipPipPipPip
  • 698 posts

Posted 26 March 2008 - 08:56 AM

I don't believe you can do this with a mixer, the mixer just controls the various sound channels (microphone, line-in, midi, etc). You just need to sample the incoming sound, and take for some interval the maximum value, or the RMS, etc. If you want a real equalizer (with bars per frequency range), FFT is what you might need. Btw, that screenshot is from Audacity, it uses the PortAudio library to capture sound (what you need), and it is open source.

#3 bojkar

    New Member

  • Members
  • Pip
  • 7 posts

Posted 26 March 2008 - 12:28 PM

I know that mixer api can do this. I try to use mixerGetLineControl & MIXERCONTROL_CONTROLTYPE_PEAKMETER but function return error :/ #1025 and I don't know what to do :/ Please help





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users