Re: auto volume control

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Fri, 30 Sep 2005 07:46:02 -0700, xwskx wrote:

> I have some question about volume control. The problem is i am using a line
> in to record something using the two channels. One channel will record one
> person talking and the other channel will record another person. I have
> reached the stage of changing the left and right volume, but i need it to
> auto adjust so that both channels have the same output volume.
>
> ie. if(left is louder) adjust left lower or right volume higher.
>
> So i was wondering if i could use directx sound api to find the amplitude of
> the channels to make the nessary adjustments. Does anyone know how to open
> the line-in audio and find the amplitude.

There are no API's to find the amplitude, you will have to do this by your
own code. Trying to simply equalize the amplitudes would probably be a bad
idea, you need to go a little further and try to only determine the sample
amplitude peaks when someone is actually speaking, i.e. there is constant
change in the amplitudes.

Do some research on AGC (automatic gain control) algorithms. You can apply
the theory to just about any of the capture API's.
.



Relevant Pages

  • Re: Hypothetical dinner party...
    ... control" of the videos was a condition for keeping them up, ... those channels exists only in your own mind. ... Note to Rich: ...
    (rec.music.beatles)
  • [PATCH 4/4] Documentation: led drivers lp5521 and lp5523
    ... +* National Semiconductor LP5521 led driver chip ... +LP5521 can drive up to 3 channels. ... Leds can be controlled directly via ... +led class control interface. ...
    (Linux-Kernel)
  • [PATCHv2 4/4] Documentation: led drivers lp5521 and lp5523
    ... +* National Semiconductor LP5521 led driver chip ... +LP5521 can drive up to 3 channels. ... Leds can be controlled directly via ... +the led class control interface. ...
    (Linux-Kernel)
  • Re: How to use the AR-108 Air Band Scanner Channels
    ... In addition to Seattle Approach Control, ... I bought a small portable scanner that allows me to listen ... Should I turn to one channel all day long, a few channels, or ... (Aviation Radio Communications Made Easy IFR edition [don't ...
    (rec.aviation.piloting)
  • Re: Beringer LC2412
    ... The desk has ... into any of the memories in the same bank is also activated at a low level. ... course you then have the same problem with channels programmed into memories ... either automatically at a preset rate or else under manual control using the ...
    (rec.arts.theatre.stagecraft)