Building a C# dll that reports the audio levels
- Tila: Closed
- Palkinto: $100
- Vastaanotetut työt: 6
- Voittaja: DustySlate
VolumeTracker class provides regular updates on the volume of the sound being played on the (main) audio output device.
The class is being compiled into a dll and then imported into a WebApp based on Google's Chromium.
The VolumeTracker has an addListener and removeListener function. The event listener is called with current volume on the audio output device. The volume is a floating number between 0.00 and 1.00. The listener is called based on the frequency provided when registering the listener (e.g. a frequency of 10 means that the listener is called 10 times per second).
The compiled dll shall be as small as possible, and not exceed 500 KB.
Additional comment (27.11.2022): Someone proposed a dll that reads the sound volume set in the windows settings. That is not what I'm looking for. I need the volume of the sound being played on the speaker device. So if there is loud music it should be close to 1 and when no sound is played close to 0.
“It was an awesome experience working with him.”