{"id":69930,"date":"2021-08-22T04:10:07","date_gmt":"2021-08-22T08:10:07","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/c-handling-multiple-keyboards-and-multiple-microphones-in-the-same-software-18\/"},"modified":"2025-05-11T20:17:27","modified_gmt":"2025-05-11T20:17:27","slug":"c-handling-multiple-keyboards-and-multiple-microphones-in-the-same-software-18","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=69930","title":{"rendered":"C#: Handling Multiple Keyboards and Multiple Microphones in the Same Software #18"},"content":{"rendered":"<p>I was working for software that needed multiple keyboards support along with multiple microphones support.<\/p>\n<p>Multiple keyboards Support:<br \/>Detecting multiple keyboards\/devices:<br \/>GetRawInputDeviceList( IntPtr.Zero, ref deviceCount, (uint)dwSize )  returns the number of devices detected <\/p>\n<p>You can get a project that detects multiple keyboards and stores the devices in a HashTable at:  http:\/\/www.codeproject.com\/KB\/system\/rawinput.aspx#_Toc156395978<\/p>\n<p>Multiple Microphones<\/p>\n<p>Also, I had to provide support for multiple microphones. You can use the following function to collect speech from a microphone. The first parameter can be 0, 1, 2  for multiple microphones [device identification number]. If you put -1, it will take the default microphone.<\/p>\n<p>m_Recorder = new WaveLib.WaveInRecorder(-1, fmt, 16384, 3, new WaveLib.BufferDoneEventHandler(DataArrived));<\/p>\n<p>Just check the following article for detail understanding:http:\/\/www.codeproject.com\/KB\/audio-video\/cswavrec.aspx<\/p>\n<p>From: http:\/\/sitestree.com\/?p=5159<br \/> Categories:18<br \/>Tags:<br \/> Post Data:2010-01-17 03:14:30<\/p>\n<pre><code>    Shop Online: &lt;a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\"&gt;https:\/\/www.ShopForSoul.com\/&lt;\/a&gt;\n    (Big Data, Cloud, Security, Machine Learning): Courses: &lt;a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"&gt; http:\/\/Training.SitesTree.com&lt;\/a&gt; \n    In Bengali: &lt;a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\"&gt;http:\/\/Bangla.SaLearningSchool.com&lt;\/a&gt;\n    &lt;a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\"&gt;http:\/\/SitesTree.com&lt;\/a&gt;\n    8112223 Canada Inc.\/JustEtc: &lt;a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\"&gt;http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) &lt;\/a&gt;\n    Shop Online: &lt;a href='https:\/\/www.ShopForSoul.com'&gt; https:\/\/www.ShopForSoul.com\/&lt;\/a&gt;\n    Medium: &lt;a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"&gt; https:\/\/medium.com\/@SayedAhmedCanada &lt;\/a&gt;\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I was working for software that needed multiple keyboards support along with multiple microphones support. Multiple keyboards Support:Detecting multiple keyboards\/devices:GetRawInputDeviceList( IntPtr.Zero, ref deviceCount, (uint)dwSize ) returns the number of devices detected You can get a project that detects multiple keyboards and stores the devices in a HashTable at: http:\/\/www.codeproject.com\/KB\/system\/rawinput.aspx#_Toc156395978 Multiple Microphones Also, I had to &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=69930\">Continue reading<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1973,1917],"tags":[],"class_list":["post-69930","post","type-post","status-publish","format-standard","hentry","category-c-misc","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":24430,"url":"http:\/\/bangla.sitestree.com\/?p=24430","url_meta":{"origin":69930,"position":0},"title":"C#: Handling Multiple Keyboards and Multiple Microphones in the Same Software #Root","author":"Author-Check- Article-or-Video","date":"April 9, 2021","format":false,"excerpt":"Brought from our old-site: http:\/\/salearningschool.com\/displayArticle.php?table=Articles&articleID=1048&title=C#:%20Handling%20Multiple%20Keyboards%20and%20Multiple%20Microphones%20in%20the%20Same%20Software I was working for software that needed multiple keyboards support along with multiple microphones support; sure in C#, Visual Studio, and MS Access Database. Multiple keyboards Support: Detecting multiple keyboards\/devices: GetRawInputDeviceList( IntPtr.Zero, ref deviceCount, (uint)dwSize ) returns the number of devices detected You can get\u2026","rel":"","context":"In &quot;C# - Misc&quot;","block_context":{"text":"C# - Misc","link":"http:\/\/bangla.sitestree.com\/?cat=1973"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":68839,"url":"http:\/\/bangla.sitestree.com\/?p=68839","url_meta":{"origin":69930,"position":1},"title":"Want to manufacture computer keyboards? #68","author":"Author-Check- Article-or-Video","date":"August 7, 2021","format":false,"excerpt":"You should check these articles: Computer Keyboard Circuit Understanding Keyboards Read all keyboard articles in this page You also need to understand electrical\/electronics\/digital circuits, microprocessor based system design, and computer interfacing From: http:\/\/sitestree.com\/?p=5088 Categories:68Tags: Post Data:2007-01-31 23:57:49 Shop Online: <a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\">https:\/\/www.ShopForSoul.com\/<\/a> (Big Data, Cloud, Security, Machine Learning): Courses:\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":16194,"url":"http:\/\/bangla.sitestree.com\/?p=16194","url_meta":{"origin":69930,"position":2},"title":"Hacking Basics: Short Overview: A Short Breadth","author":"Sayed","date":"September 14, 2019","format":false,"excerpt":"Hacking Basics: Short Overview: A Short Breadth Audience: Ethical Hackers, Wanna be security researchers, interested to know the basics of Security Objective: Identify the key hacking concepts. Just the names primarily. key Topics: Password Cracking, Keyloggers, Trojans, Viruses, Worms, Rootkits, Social Engineering, Privilege Escalation, Denial of service attack, Botnet, Alternate\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26197,"url":"http:\/\/bangla.sitestree.com\/?p=26197","url_meta":{"origin":69930,"position":3},"title":"Hacking Basics: Short Overview: A Short Breadth #Root","author":"Author-Check- Article-or-Video","date":"April 19, 2021","format":false,"excerpt":"Hacking Basics: Short Overview: A Short Breadth Audience: Ethical Hackers, Wanna be security researchers, interested to know the basics of Security Objective: Identify the key hacking concepts. Just the names primarily. key Topics: Password Cracking, Keyloggers, Trojans, Viruses, Worms, Rootkits, Social Engineering, Privilege Escalation, Denial of service attack, Botnet, Alternate\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":65619,"url":"http:\/\/bangla.sitestree.com\/?p=65619","url_meta":{"origin":69930,"position":4},"title":"What is Monotouch? #Mobile Development #Root #By Sayed Ahmed","author":"Author-Check- Article-or-Video","date":"July 9, 2021","format":false,"excerpt":"What is Monotouch? A mobile development platform [to develop applications for mobile devices] The apps can run on multiple platforms including Windows, Mac and Android platforms Based on .Net and C# A good choice for .Net developers to develop mobile applications. Faster application development Can be seen as an alternative\u2026","rel":"","context":"In &quot;C# - Misc&quot;","block_context":{"text":"C# - Misc","link":"http:\/\/bangla.sitestree.com\/?cat=1973"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26924,"url":"http:\/\/bangla.sitestree.com\/?p=26924","url_meta":{"origin":69930,"position":5},"title":"Basic tool bar for holding multiple buttons. #Programming Code Examples #Java\/J2EE\/J2ME #Basic Swing","author":"Author-Check- Article-or-Video","date":"May 5, 2021","format":false,"excerpt":"BrowserToolBar.java A basic tool bar for holding multiple buttons. import java.awt.*; import javax.swing.*; \/** Part of a small example showing basic use of JToolBar. * Creates a small dockable toolbar that is supposed to look * vaguely like one that might come with a Web browser. * Makes use of\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/69930","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=69930"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/69930\/revisions"}],"predecessor-version":[{"id":78124,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/69930\/revisions\/78124"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=69930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=69930"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=69930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}