Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / desktop / MFC

Audio level Compressor by Cyril COMTE and Steven de Toni

1.97/5 (9 votes)
15 Oct 2006 1   2.2K  
Audio level Compressor
Compressor is an evolution of the "Simple Audio Out Oscilloscope and Spectrum Analyzer" from Steven de TONI.

Introduction

I have modified the original code to allow to regulate the sound level when you listen to the TV or when you listen to some music on a PC.

I'm fed up with all this MP3's different recording level or with the advertising on TV: You have to turn down the volume each time (i don't know in other countries, but that the way it's in France!)

I have used this fonction to control de wave level out: "waveOutSetVolume(NULL, ValeurWave);"

This modification has been intersting for me to understand how to work with a sound card. I havent a lot of time to to better so if you see improvements or if you want to do modify...

NB:The option "Separated channel settings" only works with some soundcard.

"Compressor.exe ReglageSepare": This command line allows to control in a separated way the two chanels at start, only supported by some soundcards!

Image 1

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here