LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control master volume in window cvi

How to control master volume in window cvi
0 Kudos
Message 1 of 4
(3,389 Views)
You will need to use the Windows multimedia SDK functions for this. You will need to install the windows SDK functions support in CVI ( if you have not already done that ) by restarting the CVI installer, selecting modify and enabling the SDK option. Refer to the Microsoft Developer Network here for more information on the functions themselves.

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 4
(3,388 Views)
    Can you (or someone else) post a little example of how to control de master volume and mute/unmute de volume?
0 Kudos
Message 3 of 4
(3,237 Views)
As Bilal mentioned in his previous post you will need to use the Windows multimedia SDK functions for this.  In particular I would take a look at the waveOutSetVolume function. I have posted a link that gives a little more information on this function. There are some examples, but they are visual basic rather than ANSI C. However it should help to give a general idea of how to use the function.  Hope this helps!

Link to help on waveOutSetVolume

Message Edited by Patrick P. on 02-05-2007 07:22 PM

Pat P.
Software Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,203 Views)