Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
4.20/5 (2 votes)
See more:
I thought I had posted this yesterday but I don't see it in the list so I'm trying again. I really need some help with this.

I have an application requirement where certain audio settings need to be made at the hardware level rather than the session level. I have been able to hit most of the areas in question using a third party API. However, a new requirement has come up and I'm having trouble accessing the setting.

We are primarily on Win7 systems though Win10 is not out of scope. We need to be able to disable Line-In as it appears to be causing some interference with the later run session recordings that are made.

Our working environment includes multiple systems/locations. The application that handles recordings is specialized and cannot be changed for something like a base setting. Also, with newer systems the line-in and rear microphone are a combined plug and, when used, the OS asks which way you want to use it.

I realize that changing audio settings at the hardware level can be problematic but any help or suggestions would be greatly appreciated as this project needs to completed as quickly as possible.

What I have tried:

This is an ongoing project and utilizes a third party API that, so far, hasn't yielded what we need. Volume can be changed without issue but that doesn't affect line-in.
Posted
Comments
Michael_Davies 21-Jun-16 9:57am    
Have you tried using the audio control panel to disable the Line In and Microphone? They may be hidden if not plugged in so select Recording Devices and right click the window and select Show Disconnected Devices.
CliffRat 21-Jun-16 11:46am    
Thanks for responding but I need to be able to handle this programmatically as it will be part of an app that is run, at start, on multiple systems in multiple locations setting several values to a base-line.
Michael_Davies 21-Jun-16 12:18pm    
Okay, there is this project here which may help.

http://www.codeproject.com/Articles/3094/Audio-Mixer-Functions-Demo
Sergey Alexandrovich Kryukov 21-Jun-16 10:31am    
Good question, up-voted...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900