Private Sub CheckBox1_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChangedĭ = CheckBox1.Checked ![]() Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Loadĭevice = DevEnum.GetDefaultAudioEndpoint(EDataFlow.eRender, ERole.eMultimedia)ĬheckBox1.Checked = Vista Core Audio API Master Volume Control Imports CoreAudioApi Add a CheckBox to your form and use the code below. ![]() Unzip it and you will find a dll file in there called CoreAudioApi.dll, add a reference in your app to that dll file. If you want to be able to detect if the mute is on or off when your application is started so you can set a checkbox or other control according to it being on or off and then be able to turn it on or off from the checkbox or whatever then you can doĭownload the Sample project from the CodeProject link below.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |