Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: How to detect insertion or removal of a USB sound card?

$
0
0
You should be able to use this as a starting point:

Detecting USB Drive Removal in a C# Program
Windows will send WM_DEVICECHANGE message to all applications whenever some hardware change occurs, including when a flash drive (or other removable device) is inserted or removed. The WParam parameter of this message contains code which specifies exactly what event occurred.

Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>