© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
1 reply
Arctic344

Help: Using an Event handler. (NAudio)

Hello good people.
I'm a beginner who is making an intermediary program between my PC and my Arduino.
To implement the last function of this program, I need to be able to detect & run a method when I use my computer to change the master volume or volume of an application. Apparently the NAudio API has this functionality, as described here

https://www.fuget.org/packages/NAudio/1.10.0/lib/netstandard2.0/NAudio.dll/NAudio.CoreAudioApi.Interfaces/IAudioSessionEventsHandler

Given im a beginner, I have no Idea how I would implement this into code. My best guess at how to do this I will attach below, it does not work. If anyone knows how stuff like this actually works, It would be much appreciated
NAudio.CoreAudioApi.Interfaces.IAudioSessionEventsHandler
Type with 0 fields and 7 methods

interface to receive session related events
NAudio.CoreAudioApi.Interfaces.IAudioSessionEventsHandler
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Using Event Handler null exception
C#CC# / help
4y ago
✅ Event Handler functionality
C#CC# / help
11mo ago
automated event handler
C#CC# / help
3y ago
❔ OOP Event Handler implementation
C#CC# / help
4y ago