# How to programmatically set up a microphone

**URL:** <https://devforum.zoom.us/t/how-to-programmatically-set-up-a-microphone/339>\
**Category:** Windows\
**Created:** [August 21, 2017, 10:36am UTC](https://devforum.zoom.us/t/how-to-programmatically-set-up-a-microphone/339 "2017-08-21T10:36:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nurlan\_M](https://avatars.discourse-cdn.com/v4/letter/n/7bcc69/32.png) [@Nurlan\_M](https://devforum.zoom.us/u/Nurlan_M)\
**Post date:** [August 21, 2017, 10:36am UTC](https://devforum.zoom.us/t/how-to-programmatically-set-up-a-microphone/339/1 "2017-08-21T10:36:36Z")

</div>

I’m developing a windows application that uses your SDK for meetings.  
I have a task to allow the user to perform camera and microphone settings outside of your SDK.  
I found that I can choose the camera with this method:  
virtual SDKError SelectCamera (const wchar\_t \* deviceId)

but here’s how to choose a microphone, I can not find.  
Tell me please, how can this be done in my code?

---

<div class="post-metadata">

**Author:** ![Wei\_Guo1](https://avatars.discourse-cdn.com/v4/letter/w/ec9cab/32.png) [@Wei\_Guo1](https://devforum.zoom.us/u/Wei_Guo1)\
**Post date:** [August 22, 2017, 1:10am UTC](https://devforum.zoom.us/t/how-to-programmatically-set-up-a-microphone/339/2 "2017-08-22T01:10:56Z")

</div>

Hi Nurlan,

This feature currently is not available on Windows SDK, we will consider add this to our roadmap and keep you posted!

Best

---

<div class="post-metadata">

**Author:** ![Nurlan\_M](https://avatars.discourse-cdn.com/v4/letter/n/7bcc69/32.png) [@Nurlan\_M](https://devforum.zoom.us/u/Nurlan_M)\
**Post date:** [August 24, 2017, 4:51am UTC](https://devforum.zoom.us/t/how-to-programmatically-set-up-a-microphone/339/3 "2017-08-24T04:51:49Z")

</div>

Hello,

Thank you for answer

I have another question: does your Windows SDK can run on Windows XP SP3 (x86)?

for some reason I get an error: “sdk\_demo.exe is not a Win32 application”

if it should run, can you help me startup it (maybe there should be some custom build parameters&nbsp;or some what)?

PS: I have installed&nbsp;vcredist\_x86.exe

---

<div class="post-metadata">

**Author:** ![dats\_liao](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dats_liao/32/464_2.png) [@dats\_liao](https://devforum.zoom.us/u/dats_liao)\
**Post date:** [August 24, 2017, 5:56am UTC](https://devforum.zoom.us/t/how-to-programmatically-set-up-a-microphone/339/4 "2017-08-24T05:56:29Z")

</div>

which version of the Visual Studio&nbsp;did you used to build the sdk demo? you also need to install the corresponding&nbsp;vcredist\_x86.exe.

---

<div class="post-metadata">

**Author:** ![Nurlan\_M](https://avatars.discourse-cdn.com/v4/letter/n/7bcc69/32.png) [@Nurlan\_M](https://devforum.zoom.us/u/Nurlan_M)\
**Post date:** [August 24, 2017, 8:06am UTC](https://devforum.zoom.us/t/how-to-programmatically-set-up-a-microphone/339/5 "2017-08-24T08:06:30Z")

</div>

Thank you,

I was able to build a project using

Linker-\> Input: DuiLib.lib  
Target platform: Visual Studio 2013 - Windows XP (v120\_xp)

I also had to install the corresponding vcredist\_x86.exe (v120)

&nbsp;

and now it is working

&nbsp;

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 26, 2021, 6:46pm UTC](https://devforum.zoom.us/t/how-to-programmatically-set-up-a-microphone/339/6 "2021-08-26T18:46:09Z")

</div>

Marking as solved.

-Tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 26, 2021, 6:46pm UTC](https://devforum.zoom.us/t/how-to-programmatically-set-up-a-microphone/339/7 "2021-08-26T18:46:11Z")

</div>

Closed on August 26, 2021, 6:46pm UTC


