https://github.com/albinodrought/volumemonitor
VolumeMonitor is a WinForms component that enables easy event-based volume monitoring using NAudio's implementation of WASAPI.
https://github.com/albinodrought/volumemonitor
naudio wasapi
Last synced: about 2 months ago
JSON representation
VolumeMonitor is a WinForms component that enables easy event-based volume monitoring using NAudio's implementation of WASAPI.
- Host: GitHub
- URL: https://github.com/albinodrought/volumemonitor
- Owner: AlbinoDrought
- License: gpl-3.0
- Created: 2015-07-23T09:56:37.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-23T10:19:52.000Z (almost 10 years ago)
- Last Synced: 2025-02-07T02:46:32.478Z (3 months ago)
- Topics: naudio, wasapi
- Language: C#
- Size: 316 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## VolumeMonitor
VolumeMonitor is a WinForms component that enables easy event-based volume monitoring using NAudio's implementation of WASAPI.
## Code Example
```C#
public void Start()
{
List devices = volumeMonitor1.GetDevices();
foreach (MMDevice device in devices)
{
volumeMonitor1.Add(device);
}volumeMonitor1.OnThresholdHit += volumeMonitor1_OnThresholdHit;
}private void volumeMonitor1_OnThresholdHit(NAudio.CoreAudioApi.MMDevice device, int volume)
{
MessageBox.Show(String.Format("{0} hit the threshold of {1}-{2} at {3}", device.FriendlyName, volumeMonitor1.ThresholdMinimum, volumeMonitor1.ThresholdMaximum, volume));
}
```See VolumeMonitorTestForm for more.
## Why?
Used it in another project and wanted to be able to easily use it for future projects as well.
## License
Licensed under GPL-3 - https://tldrlegal.com/license/gnu-general-public-license-v3-(gpl-3)
Uses **NAudio**: NAudio is an open source .NET audio library written by Mark Heath ([email protected]) licensed under Ms-PL