Volume Limiter?

wat do i have to use to detect the playback volume (not the same as volume setting), so that i can adjust it?

example: a video on YouTube has very soft audio, so i crank the volume up to the max (software side). but the next video has very loud audio. the program is supposed to prevent this audio from "blasting" me and waking up my neighbours at night.
Last edited on
That is the same thing that I have been thinking about for months.
A small application that will constantly check the output volume in software
and "normalize" the overall volume to what you want it to be.

Lets say your application has the limits of 15-30, then a part of the codes would looks
something like this:

int Minimum = 15;
int Maximum = 30;

if (software_output_volume > Maximum) // limit the output volume to maximum of 30
if else (software_output_volume < Minimum) // limit the output volume to minimum of 15
else // Do nothing

If that would be too much I would just like it to adjust the software volume
settings to match the values of the int:s Minimum and Maximum.
Or is there an even better way to structuring it/make it work?


Do you really mean that you only want it to check the playback of the buffer memory
used to download data from a server to your computer via Youtube for
an example, or do you mean the overall output volume of the computer
software. Because if you want the second choice, the limitations would be lesser.

I do not really know the answers in programming codes, but I think that
it would be very helpful both to have an application that actually do that and having
that kind of experience when programming.
If you're targetting Windows Vista and newer, the following articles might be of interest

Audio-Tapered Volume Controls
http://msdn.microsoft.com/en-us/library/windows/desktop/dd370798%28v=VS.85%29.aspx

Peak Meters
http://msdn.microsoft.com/en-us/library/windows/desktop/dd316561%28v=vs.85%29.aspx

For older versions of Windows, see

HOWTO: Monitor Audio Volume Levels
http://support.microsoft.com/default.aspx?kbid=181550

Andy
Last edited on
Topic archived. No new replies allowed.