LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Choose the input line of the soundcard

I want to read in data from different sources of my soundcard. Therefor i use the mixerfunctions of the windows sdk. Im able to get the control to switch on and off the output of the soundcard, but i don`t find any control to choose the input source.
0 Kudos
Message 1 of 2
(2,989 Views)
Depending on the mixer driver, line selection can be done in a number of ways.

Most often (in my experience) there is a control of type MIXERCONTROL_CONTROLTYPE_MUX or MIXERCONTROL_CONTROLTYPE_SINGLESELECT. This contains an array of binary bytes indicating which of the input channels are switched on.

Alternatively, the next most common method is a number of controls of type MIXERCONTROL_CONTROLTYPE_BOOLEAN or MIXERCONTROL_CONTROLTYPE_ONOFF or MIXERCONTROL_CONTROLTYPE_MUTE, one for each input line. In this case, you have to set these appropriately for the input(s) you want.

Not the easiest of APIs to navigate, but hope that helps.

Martin.
--
Martin
Certified CVI Developer
0 Kudos
Message 2 of 2
(2,989 Views)