资 源 简 介
VolumeMeter (Managed DirectX)
This project is a live volume meter control for monitoring audio levels from a sound card. It is written entirely in C#, and uses Microsoft s Managed DirectX (June release). You can drag-and-drop the control into any Windows Forms application. You may select the input, and tweak the appearance of the animation through various parameters.
The idea behind this project is to maintain a very short buffer of audio and constantly record into it. The control is on a timer, and periodically queries the buffer to see what volume level the most recent sample has, and then sets a progress bar s value accordingly.