How can I get the hardware audio sample rate in C#?

Jun 23 2015 3:45 PM

I am writing a tool that will adjust settings for the 'Speaker Properties' and 'Microphone Properties' that are otherwise set manually from Control Panel.

This affects multiple workstations in several locations. The app will live on each station and be auto run at boot up. The purpose is to baseline the workstation so that the record and playback functions will be consistent for each days activities across the board.

The current iteration of the app sets microphone boost & volume, speaker volume and makes a registry setting.

At this time I specifically need to be able to set the bit depth and sampling rate for both recording and playback. I have seen numerous articles that discuss changing the settings as stored in the file header but I haven't been able to locate any solid information on making these adjustments to the hardware.

There are hundreds of work stations involved and so the goal is to save the time that would otherwise be needed to manually set all workstations each day. I would greatly appreciate any help to locate the means of making these settings or how to locate and read them programatically.
 


Answers (1)